AI for QA / Scenario
Spot the Hallucinated Assertion
An AI wrote a passing Playwright test. One assertion is fiction. Find it and the API that does not exist.
- Difficulty
- Medium
- Format
- Scenario
- Points
- 150
- Estimate
- 12 min
// MISSION BRIEF
Your Mission
An AI generated a Playwright test that looks clean and even passes locally. Passing is not proof of correctness. Read it against the spec and the framework, and find the assertion that tests nothing and the method that is invented.
// FIRST CONTACT
Battle teaser
First artifact
Spec for the feature under test
Which line is an assertion that tests nothing?
- AC: expect(page).toBeTruthy() always passes; a Page object is truthy regardless of login outcome
- BB: the welcome-banner assertion
- CNone; all four are meaningful
- DA: the URL assertion
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
ai-workflowshallucinationplaywrightscenarioai-for-qa