Skip to content
RED SAGSkills
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)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions