medium10 pts · first answer countse2e-testingplaywright
Flaky end-to-end test
This Playwright test passes locally but fails randomly in CI. What is the best fix?
await page.getByRole('button', { name: 'Save' }).click()
await page.waitForTimeout(2000)
expect(await page.getByText('Saved').isVisible()).toBe(true)Discussion 0
Join free to post in the discussion.
Related questions
- Flaky end-to-end test with fixed waitsFrontend Developer
- Flaky Playwright visibility checkQA Engineer
- Strict mode violationQA Engineer
- A missing awaitAutomation Test Engineer
- Browsers Playwright coversAutomation Test Engineer
- Using the trace viewerAutomation Test Engineer
- Web-first assertionsAutomation Test Engineer
- Speeding up logged-in testsAutomation Test Engineer