Skip to content

Commit 63a2bde

Browse files
committed
✅(e2e) fix e2e tests
After translating to french, a selector was not accessible anymore because the aria label was in english. We update the selector to use the french aria label. We increase as well the timeout of another test that was flaky.
1 parent b317a2a commit 63a2bde

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ test.describe('Doc Export', () => {
461461

462462
await page
463463
.getByRole('button', {
464-
name: 'Export the document',
464+
name: 'Exporter le document',
465465
})
466466
.click();
467467

src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ test.describe('Doc Routing', () => {
8686

8787
await responsePromise;
8888

89-
await expect(page.getByText('Log in to access the document')).toBeVisible();
89+
await expect(page.getByText('Log in to access the document')).toBeVisible({
90+
timeout: 10000,
91+
});
9092
});
9193
});
9294

0 commit comments

Comments
 (0)