Skip to content

Commit d9ad954

Browse files
committed
test
1 parent 5ac0de3 commit d9ad954

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/test-e2e.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
run: npx playwright install --with-deps
2121
- name: Run tests
2222
run: npm run test-e2e
23-
timeout-minutes: 1
2423
- uses: actions/upload-artifact@v4
2524
if: ${{ !cancelled() }}
2625
with:

e2e/OrejimePage.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export class OrejimePage {
7373
}
7474

7575
async acceptAllFromBanner() {
76+
await expect(
77+
this.page.getByTestId('orejime-banner-accept')
78+
).toBeVisible();
79+
console.log('accept visible');
7680
await this.page.getByTestId('orejime-banner-accept').click();
7781
}
7882

@@ -120,7 +124,6 @@ export class OrejimePage {
120124
}
121125

122126
async expectConsents(consents: Record<string, unknown>) {
123-
return {};
124127
await expect(await this.getConsentsFromCookies()).toEqual(consents);
125128
}
126129

playwright.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ export default defineConfig({
44
testDir: './e2e',
55
fullyParallel: true,
66
forbidOnly: !!process.env.CI,
7-
retries: process.env.CI ? 2 : 0,
7+
timeout: 5_000,
8+
expect: {
9+
timeout: 1_000
10+
},
811
workers: process.env.CI ? 1 : undefined,
912
reporter: 'list',
1013
use: {

0 commit comments

Comments
 (0)