From 698950f2a1856b57521d83c421e4554d7d8f4af9 Mon Sep 17 00:00:00 2001 From: Nick Grosenbacher Date: Thu, 29 Aug 2024 17:05:27 -0400 Subject: [PATCH] SWC-7038 - Update e2e for error page --- e2e/files.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }) }