diff --git a/e2e/files.spec.ts b/e2e/files.spec.ts index db737567dc..173808da90 100644 --- a/e2e/files.spec.ts +++ b/e2e/files.spec.ts @@ -52,12 +52,12 @@ const expectNoAccessPage = async ( expectTimeout: number = defaultExpectTimeout, ) => { await expect( - page.getByRole('heading', { - name: 'Sorry, no access to this page.', - }), + page.getByText('You don’t have permission to view this.'), ).toBeVisible({ timeout: expectTimeout }) await expect( - page.getByText('You are not authorized to access the page requested.'), + page.getByText( + 'This account has not been granted access to view this resource.', + ), ).toBeVisible({ timeout: expectTimeout }) }