Skip to content

Commit

Permalink
test: more robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
meza committed Apr 5, 2023
1 parent 0315fad commit a8c0f0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { defineConfig, devices } from '@playwright/test';
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
outputDir: './reports/e2e',
outputDir: './reports/e2e/results',
testDir: './playwright/e2e',
/* Maximum time one test can run for. */
timeout: 30 * 1000,
Expand Down
2 changes: 2 additions & 0 deletions playwright/e2e/cookieconsent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ test('has cookie consent banner deny path', async ({ browser }) => {

const denyButton = await page.getByRole('button', { name: 'Deny' });
await denyButton.click();
await page.waitForLoadState('networkidle');

await expect(dialog).not.toBeInViewport();

Expand Down Expand Up @@ -43,6 +44,7 @@ test('has cookie consent banner accept path', async ({ browser }) => {

const denyButton = await page.getByRole('button', { name: 'Accept' });
await denyButton.click();
await page.waitForLoadState('networkidle');

await expect(dialog).not.toBeInViewport();

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a8c0f0e

Please sign in to comment.