All questions
Intermediate · JavaScript · Assertions
Playwright: read the error message
Commonly asked: QA automation / SDET interview rounds · ~8 min
Write loginError(page, user, pass): log in like before, then return the text of the **alert** that appears, or null if login succeeded (the URL becomes /dashboard).
Checking your membership…