From 63a2bde11e8aabcefc5814474a6dca0e8f33b03f Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Thu, 4 Sep 2025 16:12:33 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(e2e)=20fix=20e2e=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../apps/e2e/__tests__/app-impress/doc-export.spec.ts | 2 +- .../apps/e2e/__tests__/app-impress/doc-routing.spec.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts index c7487a1c0..03ba135c4 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts @@ -461,7 +461,7 @@ test.describe('Doc Export', () => { await page .getByRole('button', { - name: 'Export the document', + name: 'Exporter le document', }) .click(); diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts index 189dbc1e3..21683bbbf 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts @@ -86,7 +86,9 @@ test.describe('Doc Routing', () => { await responsePromise; - await expect(page.getByText('Log in to access the document')).toBeVisible(); + await expect(page.getByText('Log in to access the document')).toBeVisible({ + timeout: 10000, + }); }); });