Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Increase timeout to prevent flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Apr 15, 2022
1 parent 1e3d71b commit 63c6952
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/playwright/visual-regression/content-report-form.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ test.describe('content report form', () => {
})

test('unfocused close button', async ({ page }) => {
await page.click('button:has-text("report")', { timeout: 100 })
await page.click('button:has-text("report")', { timeout: 500 })
const form = page.locator('[data-testid="content-report-popover"]')

expect(await form.screenshot({ timeout: 100 })).toMatchSnapshot({
expect(await form.screenshot({ timeout: 500 })).toMatchSnapshot({
name: 'content-report-unfocused.png',
})
})

test('focused close button', async ({ page }) => {
await page.click('button:has-text("report")', { timeout: 100 })
await page.click('button:has-text("report")', { timeout: 500 })
const form = page.locator('[data-testid="content-report-popover"]')

await form.locator('[aria-label="Close"]').focus({ timeout: 100 })
await form.locator('[aria-label="Close"]').focus({ timeout: 500 })
expect(await form.screenshot()).toMatchSnapshot({
name: 'content-report-focused.png',
})
Expand Down

0 comments on commit 63c6952

Please sign in to comment.