Playwright

Isolate accounts per worker

Hard120 pts
  • Worker Isolation
  • Parallel Testing
  • workerIndex
Practice app · Acme Ops

A sign-in page with field validation and an authenticated dashboard.

Test URL
/lab/qa-automation-isolate-accounts-per-worker

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

Objective

Prevent parallel test interference by assigning isolated user accounts to parallel worker processes.

Your Task

  1. 1Navigate to the sign-in page at TEST_URL.
  2. 2Authenticate with an assigned user account.
  3. 3Assert that the welcome banner (#welcome-message) is visible.
  4. 4Click the logout button (#logout-button) to return to the sign-in screen.
  5. 5Assert that the email input field (#username) is visible again.

Validation Checks

  • Completes login and logout cleanly
  • #logout-button returns to sign in form
  • At least 2 assertions pass

Fixtures

username
qa@target.dev
password
Test@123

Playwright · QA Automation Practice Track · Authentication & storage state