Chapter 2

Writing and Refactoring Tests — quiz

5 questions · ~4 min

Chapter 2 quiz

Question 1 of 5

A QA engineer prompts Claude Code: 'Write a Playwright test for the checkout flow.' The generated test immediately fails because the selectors don't match the real page. What is the most effective corrective prompt strategy?