Skip to content
RED SAGSkills
hard20 pts · first answer countsui-automationplaywrightwaits

A five-second assertion in a long test

The test timeout is 60 seconds, but this assertion fails after about 5 seconds even though the message appears after 8 seconds. Why?

await page.getByRole('button', { name: 'Generate' }).click()
await expect(page.getByText('Report ready')).toBeVisible()
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions