Playwright

Handle the native confirm when resetting the board

Medium50 pts
  • Native dialogs
  • Confirm
  • Dialog handling
  • State reset
Practice app · TaskBoard

A team kanban board: sign-in, four columns with WIP limits, a create-card dialog, pointer-based drag and drop, inline title editing, a right-click card menu with archive and undo, delete confirmation, search, keyboard shortcuts, a native reset confirm and an activity log.

Test URL
/lab/playwright-taskboard-reset-confirm

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

Objective

Change the board, then reset it through a native confirm dialog: dismiss it once and verify nothing changed, then accept it and verify the starting board is restored.

Your Task

  1. 1Open TEST_URL (you are already signed in).
  2. 2Move card TB-101 “Fix login bug” to Done (drag it, or use .card-menu-button → #menu-move → #move-to-done).
  3. 3Click #board-settings-button, then #reset-board. Dismiss the native confirm (Cancel).
  4. 4Assert #board-status reads “Reset cancelled” and TB-101 is still in Done.
  5. 5Click #board-settings-button → #reset-board again and accept the confirm (OK).
  6. 6Assert #board-status starts with “Board reset”, TB-101 is back in To Do and #activity-log contains “Board reset”.

Validation Checks

  • The board status reports the reset.
  • Card TB-101 is back in To Do and Done holds 2 cards again.
  • The activity log shows the move and the reset.
  • No native dialog is left open.

Fixtures

Email
lead@taskboard.test
Password
Board@2026
Signed-in member
Maya Lin (Project lead)
Board
Website Relaunch, 11 cards (TB-101 to TB-111); new cards get TB-112, TB-113…
Today’s date
Tuesday 10 November 2026 (due dates are relative to it)
Team
Maya Lin, Diego Alvarez, Priya Nair, Sam Okafor, Lena Fischer

Cloud Execution & Grading Guide

This Medium 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 TaskBoard sandbox reliably without hardcoding hosts.
  • Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 4 acceptance checks and earn 50 points.

Playwright · Playwright Challenges Practice Track · TaskBoard