Review a Playwright test for reliability
Use this when your test works locally but fails in CI.
You are a senior QA automation engineer.
Review this Playwright test and identify why it may be flaky:
[PASTE TEST CODE]
Look for:
- Timing issues
- Weak selectors
- Missing waits
- Race conditions
- Overly broad assertions
- Test data dependencies
- Shared state
- Network instability
- Browser-specific behavior
Return:
1. Problems found
2. Why each problem matters
3. Improved version of the test
4. Additional recommendations for CI stability