Playwright

Upgrade the membership plan

Easy25 pts
  • Radio buttons
  • Forms
  • Confirmation messages
Practice app · StreamFlix

A dark-themed streaming service: sign-in, a “Who's watching?” picker with a PIN-locked Kids profile, paged browse carousels with hover cards, title details with seasons, debounced search, My List, a video player with shortcuts and a Skip intro button, a trailer iframe and plan selection.

Test URL
/lab/playwright-streamflix-change-plan

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Upgrade the account from the Standard plan to Premium using the plan radio cards and verify the confirmation.

Your Task

  1. 1Open TEST_URL. You are signed in as Maya on the browse page.
  2. 2Click Account in the header (#nav-account).
  3. 3Select the Premium plan (#plan-premium) and click Save plan (#save-plan).
  4. 4Assert #plan-confirmation reads “Plan changed to Premium” and #current-plan shows Premium · $22.99/month.

Validation Checks

  • The Premium radio is selected.
  • The confirmation says the plan changed to Premium.
  • The current plan shows Premium at $22.99/month.

Fixtures

Email
viewer@streamflix.test
Password
Stream@2026
Profiles
Maya · Leo · Kids (PIN locked)
Kids PIN
2580
Plans
Basic $7.99 · Standard $15.49 (current) · Premium $22.99 per month
Featured series
Northbound Signal (3 seasons: 6, 8 and 4 episodes)

Cloud Execution & Grading Guide

This Easy Playwright Challenges exercise runs inside TargetQA's managed cloud sandbox using Playwright (TypeScript, JavaScript, Python, Java, C#). Every submission runs inside an isolated headless Chromium container with pre-synced drivers, capturing live console logs, DOM assertions, and a 720p step-by-step video replay.

  • Supported stacks: TypeScript (@playwright/test) · JavaScript (@playwright/test) · Python (Playwright + pytest) · Java (Playwright for Java + JUnit 5) · C# (Playwright for .NET + NUnit)
  • Zero local setup: Use the pre-declared TEST_URL variable so your script targets the live StreamFlix sandbox reliably without hardcoding hosts.
  • Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 3 acceptance checks and earn 25 points.

Playwright · Playwright Challenges Practice Track · StreamFlix