Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions e2e/browser/test/e2e.playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function expectProblemDetails(
page: Page,
status: string,
title: string,
detailContains: string,
detailContains: string | RegExp,
) {
// The Problem Details error should be displayed.
await expect(page.locator("span[data-testid=pdType]")).toContainText(
Expand Down Expand Up @@ -71,7 +71,7 @@ test("401 problem details error", async ({ page, auth }) => {
page,
"401",
"Unauthorized",
"HTTP 401 Unauthorized",
/The server application intentionally responded with an HTTP error response status.|HTTP 401 Unauthorized/,
);
});

Expand Down Expand Up @@ -138,7 +138,7 @@ test("403 problem details error", async ({ page, auth }) => {
page,
"403",
"Forbidden",
"Access has been denied",
/The server application intentionally responded with an HTTP error response status.|Access has been denied/,
);
});

Expand All @@ -156,6 +156,6 @@ test("405 problem details error", async ({ page, auth }) => {
page,
"405",
"Method Not Allowed",
"No resource method found",
/The server application intentionally responded with an HTTP error response status.|No resource method found/,
);
});
Loading