QALernCode. Code, test, automate.
Free play missions

Free play. No account needed. Your score is not saved and XP is only earned with a free account.

beginnercode inspection8 min100 XP

Generate Your First Playwright Test

AI wrote a Playwright login test in seconds. Check whether it actually tests anything.

Learning objectives

  • Read a basic Playwright test
  • Recognise a test without an assertion
  • Understand why user-facing locators are preferred

Scenario

You asked an AI assistant for a Playwright test for the login flow of an online shop. It produced the test shown in the first step, and the test passes.

Instructions

Read the code before you answer. Passing is not the same as verifying. You need 70% to pass, and you can retry as often as you like.