Skip to content

Commit 7cfce7c

Browse files
committed
Updates test
1 parent e28ed11 commit 7cfce7c

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

tests/site-with-errors.test.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ describe("site-with-errors", () => {
3232
expect(
3333
problemUrl.endsWith(`/${finding.ruleId}?application=playwright`),
3434
).toBe(true);
35-
// Check `screenshotId` is a valid UUID
36-
expect(screenshotId).toMatch(
37-
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,
38-
);
35+
expect(screenshotId).toMatch(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
3936
return finding;
4037
});
4138
const expected = [
@@ -48,7 +45,6 @@ describe("site-with-errors", () => {
4845
ruleId: "color-contrast",
4946
solutionShort:
5047
"ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
51-
screenshotId: "12345678-1234-1234-1234-123456789012",
5248
},
5349
{
5450
scannerType: "axe",
@@ -58,7 +54,6 @@ describe("site-with-errors", () => {
5854
ruleId: "page-has-heading-one",
5955
solutionShort:
6056
"ensure that the page, or at least one of its frames contains a level-one heading",
61-
screenshotId: "12345678-1234-1234-1234-123456789012",
6257
},
6358
{
6459
scannerType: "axe",
@@ -70,7 +65,6 @@ describe("site-with-errors", () => {
7065
ruleId: "color-contrast",
7166
solutionShort:
7267
"ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
73-
screenshotId: "12345678-1234-1234-1234-123456789012",
7468
},
7569
{
7670
scannerType: "axe",
@@ -81,7 +75,6 @@ describe("site-with-errors", () => {
8175
ruleId: "color-contrast",
8276
solutionShort:
8377
"ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
84-
screenshotId: "12345678-1234-1234-1234-123456789012",
8578
},
8679
{
8780
scannerType: "axe",
@@ -92,7 +85,6 @@ describe("site-with-errors", () => {
9285
ruleId: "color-contrast",
9386
solutionShort:
9487
"ensure the contrast between foreground and background colors meets wcag 2 aa minimum contrast ratio thresholds",
95-
screenshotId: "12345678-1234-1234-1234-123456789012",
9688
},
9789
{
9890
scannerType: "axe",
@@ -101,7 +93,6 @@ describe("site-with-errors", () => {
10193
problemShort: "headings should not be empty",
10294
ruleId: "empty-heading",
10395
solutionShort: "ensure headings have discernible text",
104-
screenshotId: "12345678-1234-1234-1234-123456789012",
10596
},
10697
];
10798
// Check that:

0 commit comments

Comments
 (0)