Skip to content

Commit 722c1a9

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/internal-tooling-48dc293efe
2 parents 5e6f619 + ef28281 commit 722c1a9

File tree

3 files changed

+392
-376
lines changed

3 files changed

+392
-376
lines changed

e2e/browser/test/e2e.playwright.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function expectProblemDetails(
3939
page: Page,
4040
status: string,
4141
title: string,
42-
detailContains: string,
42+
detailContains: string | RegExp,
4343
) {
4444
// The Problem Details error should be displayed.
4545
await expect(page.locator("span[data-testid=pdType]")).toContainText(
@@ -71,7 +71,7 @@ test("401 problem details error", async ({ page, auth }) => {
7171
page,
7272
"401",
7373
"Unauthorized",
74-
"HTTP 401 Unauthorized",
74+
/The server application intentionally responded with an HTTP error response status.|HTTP 401 Unauthorized/,
7575
);
7676
});
7777

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

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

0 commit comments

Comments
 (0)