# Re-run failed tests up to 2 times:
pytest --reruns 2 --reruns-delay 12. Root Cause Analysis:
- Check if Test B depends on data created by Test A.
- Use page.expect_response() instead of waiting for DOM side effects.
- Use user-facing accessible locators instead of dynamic CSS classes.