Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A Playwright assertion is flaky because content appears after an asynchronous request. Which fix best preserves the test contract?" on CodeWiki (https://codewiki.com/practice/mcq/frontend/checkpoint-3/checkpoint-3-review/).
Context (verbatim from the page):
"""
A Playwright assertion is flaky because content appears after an asynchronous request. Which fix best preserves the test contract?
Use a locator with a web-first assertion that retries until its timeout.
Add a fixed ten-second sleep before every assertion.
Catch and ignore the failed assertion on the first run.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Frontend. Where you are unsure, say so.