BeginnerPW-AUTH-00115 minutesPlaywright

Log in as standard_user and verify the dashboard

A learner needs a reliable smoke test for the public synthetic account.

  • authentication
  • assertions

Objective

What to automate

Log in as standard_user and verify the Account dashboard heading and signed-in identity.

Preconditions and test data

Preconditions

  • Use a fresh isolated Practice Lab browser context.
  • Open the fixture identified by FX-AUTH-001.

Test data

  • standard_user
  • Practice@123

Expected result

The Account dashboard heading is visible and the identity reads Signed in as Standard User (standard_user).

Progressive hints

Hint 1

Use getByLabel for the username and password fields.

Hint 2

Submit with the Sign in to Practice button.

Hint 3

Assert the heading before checking the signed-in-user test id.

I’ve tried it — show solution
  1. Use getByLabel for the username and password fields.
  2. Submit with the Sign in to Practice button.
  3. Assert the heading before checking the signed-in-user test id.