Skip to content

Commit

Permalink
SWC-7038 - Update e2e for error page
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros committed Aug 29, 2024
1 parent d8211e6 commit 698950f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/files.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}

Expand Down

0 comments on commit 698950f

Please sign in to comment.