Skip to content

Commit

Permalink
fix(ci): add timeouts to integration tests between page transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Sep 15, 2023
1 parent 3d0c3f5 commit 4a50ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/specs/links.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ test.describe('links', () => {
await page.waitForURL(websiteUrl('/en/privacy'));

await page.goBack();
page.waitForTimeout(1000);

const downloadPromise = page.waitForEvent('download');
await page.getByRole('link', { name: 'link to file' }).click();
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/specs/webforms.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ test('Webforms work', async ({ page }) => {
.getByRole('button', { name: 'Send message' })
.click();

page.waitForTimeout(1000);

// Webform redirects to confirmation page.
await expect(page).toHaveURL(websiteUrl('/en/page-minimal'));

Expand Down

0 comments on commit 4a50ebc

Please sign in to comment.