Skip to content

Playwright

Playwright #814

Manually triggered October 25, 2023 15:38
Status Failure
Total duration 28m 6s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

playwright.yml

on: workflow_dispatch
Matrix: playwright-react
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 2 warnings, and 1 notice
[chromium] › src/components/drawer/drawer.pw.tsx:356:9 › Accessibility tests for Drawer component › should pass accessibility tests when animation time is set to 3s: playwright/support/helper.ts#L55
1) [chromium] › src/components/drawer/drawer.pw.tsx:356:9 › Accessibility tests for Drawer component › should pass accessibility tests when animation time is set to 3s Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 159 - Array [] + Array [ + Object { + "description": "Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds", + "help": "Elements must meet minimum color contrast ratio thresholds", + "helpUrl": "https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright", + "id": "color-contrast", + "impact": "serious", + "nodes": Array [ + Object { + "all": Array [], + "any": Array [ + Object { + "data": Object { + "bgColor": "#edf1f2", + "contrastRatio": 1.6, + "expectedContrastRatio": "3:1", + "fgColor": "#bdc0c1", + "fontSize": "16.5pt (22px)", + "fontWeight": "bold", + "messageKey": null, + }, + "id": "color-contrast", + "impact": "serious", + "message": "Element has insufficient color contrast of 1.6 (foreground color: #bdc0c1, background color: #edf1f2, font size: 16.5pt (22px), font weight: bold). Expected contrast ratio of 3:1", + "relatedNodes": Array [ + Object { + "html": "<div class=\"sc-eNQAEJ cakBln closed closing\">", + "target": Array [ + ".sc-eNQAEJ", + ], + }, + ], + }, + ], + "failureSummary": "Fix any of the following: + Element has insufficient color contrast of 1.6 (foreground color: #bdc0c1, background color: #edf1f2, font size: 16.5pt (22px), font weight: bold). Expected contrast ratio of 3:1", + "html": "<h2 text-decoration=\"none\" color=\"blackOpacity90\" class=\"sc-kkGfuU kVSede\">Drawer title</h2>", + "impact": "serious", + "none": Array [], + "target": Array [ + "h2", + ], + }, + Object { + "all": Array [], + "any": Array [ + Object { + "data": Object { + "bgColor": "#edf1f2", + "contrastRatio": 1.6, + "expectedContrastRatio": "4.5:1", + "fgColor": "#bdc0c1", + "fontSize": "10.5pt (14px)", + "fontWeight": "normal", + "messageKey": null, + }, + "id": "color-contrast", + "impact": "serious", + "message": "Element has insufficient color contrast of 1.6 (foreground color: #bdc0c1, background color: #edf1f2, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1", + "relatedNodes": Array [ + Object { + "html": "<div class=\"sc-eNQAEJ cakBln closed closing\">", + "target": Array [ + ".sc-eNQAEJ", + ], + }, + ], + }, + ], + "failureSummary": "Fix any of the following: + Element has insufficient color contrast of 1.6 (foreground color: #bdc0c1, background color: #edf1f2, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1", + "html": "<li>link a</li>", + "impact": "serious", + "none": Array [], + "target": Array [ + "li:nth-child(1)", + ], + }, + Object { + "all": Array [], + "any": Array [ + Object { + "data": Object { + "bgCo
[chromium] › src/components/drawer/drawer.pw.tsx:356:9 › Accessibility tests for Drawer component › should pass accessibility tests when animation time is set to 3s: playwright/support/helper.ts#L55
1) [chromium] › src/components/drawer/drawer.pw.tsx:356:9 › Accessibility tests for Drawer component › should pass accessibility tests when animation time is set to 3s Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 159 - Array [] + Array [ + Object { + "description": "Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds", + "help": "Elements must meet minimum color contrast ratio thresholds", + "helpUrl": "https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright", + "id": "color-contrast", + "impact": "serious", + "nodes": Array [ + Object { + "all": Array [], + "any": Array [ + Object { + "data": Object { + "bgColor": "#edf1f2", + "contrastRatio": 1.49, + "expectedContrastRatio": "3:1", + "fgColor": "#c4c7c8", + "fontSize": "16.5pt (22px)", + "fontWeight": "bold", + "messageKey": null, + }, + "id": "color-contrast", + "impact": "serious", + "message": "Element has insufficient color contrast of 1.49 (foreground color: #c4c7c8, background color: #edf1f2, font size: 16.5pt (22px), font weight: bold). Expected contrast ratio of 3:1", + "relatedNodes": Array [ + Object { + "html": "<div class=\"sc-eNQAEJ cakBln closed closing\">", + "target": Array [ + ".sc-eNQAEJ", + ], + }, + ], + }, + ], + "failureSummary": "Fix any of the following: + Element has insufficient color contrast of 1.49 (foreground color: #c4c7c8, background color: #edf1f2, font size: 16.5pt (22px), font weight: bold). Expected contrast ratio of 3:1", + "html": "<h2 text-decoration=\"none\" color=\"blackOpacity90\" class=\"sc-kkGfuU kVSede\">Drawer title</h2>", + "impact": "serious", + "none": Array [], + "target": Array [ + "h2", + ], + }, + Object { + "all": Array [], + "any": Array [ + Object { + "data": Object { + "bgColor": "#edf1f2", + "contrastRatio": 1.49, + "expectedContrastRatio": "4.5:1", + "fgColor": "#c4c7c8", + "fontSize": "10.5pt (14px)", + "fontWeight": "normal", + "messageKey": null, + }, + "id": "color-contrast", + "impact": "serious", + "message": "Element has insufficient color contrast of 1.49 (foreground color: #c4c7c8, background color: #edf1f2, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1", + "relatedNodes": Array [ + Object { + "html": "<div class=\"sc-eNQAEJ cakBln closed closing\">", + "target": Array [ + ".sc-eNQAEJ", + ], + }, + ], + }, + ], + "failureSummary": "Fix any of the following: + Element has insufficient color contrast of 1.49 (foreground color: #c4c7c8, background color: #edf1f2, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1", + "html": "<li>link a</li>", + "impact": "serious", + "none": Array [], + "target": Array [ + "li:nth-child(1)", + ], + }, + Object { + "all": Array [], +
[chromium] › src/components/drawer/drawer.pw.tsx:356:9 › Accessibility tests for Drawer component › should pass accessibility tests when animation time is set to 3s: playwright/support/helper.ts#L55
1) [chromium] › src/components/drawer/drawer.pw.tsx:356:9 › Accessibility tests for Drawer component › should pass accessibility tests when animation time is set to 3s Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 159 - Array [] + Array [ + Object { + "description": "Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds", + "help": "Elements must meet minimum color contrast ratio thresholds", + "helpUrl": "https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright", + "id": "color-contrast", + "impact": "serious", + "nodes": Array [ + Object { + "all": Array [], + "any": Array [ + Object { + "data": Object { + "bgColor": "#edf1f2", + "contrastRatio": 1.27, + "expectedContrastRatio": "3:1", + "fgColor": "#d4d7d8", + "fontSize": "16.5pt (22px)", + "fontWeight": "bold", + "messageKey": null, + }, + "id": "color-contrast", + "impact": "serious", + "message": "Element has insufficient color contrast of 1.27 (foreground color: #d4d7d8, background color: #edf1f2, font size: 16.5pt (22px), font weight: bold). Expected contrast ratio of 3:1", + "relatedNodes": Array [ + Object { + "html": "<div class=\"sc-eNQAEJ cakBln closed closing\">", + "target": Array [ + ".sc-eNQAEJ", + ], + }, + ], + }, + ], + "failureSummary": "Fix any of the following: + Element has insufficient color contrast of 1.27 (foreground color: #d4d7d8, background color: #edf1f2, font size: 16.5pt (22px), font weight: bold). Expected contrast ratio of 3:1", + "html": "<h2 text-decoration=\"none\" color=\"blackOpacity90\" class=\"sc-kkGfuU kVSede\">Drawer title</h2>", + "impact": "serious", + "none": Array [], + "target": Array [ + "h2", + ], + }, + Object { + "all": Array [], + "any": Array [ + Object { + "data": Object { + "bgColor": "#edf1f2", + "contrastRatio": 1.27, + "expectedContrastRatio": "4.5:1", + "fgColor": "#d4d7d8", + "fontSize": "10.5pt (14px)", + "fontWeight": "normal", + "messageKey": null, + }, + "id": "color-contrast", + "impact": "serious", + "message": "Element has insufficient color contrast of 1.27 (foreground color: #d4d7d8, background color: #edf1f2, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1", + "relatedNodes": Array [ + Object { + "html": "<div class=\"sc-eNQAEJ cakBln closed closing\">", + "target": Array [ + ".sc-eNQAEJ", + ], + }, + ], + }, + ], + "failureSummary": "Fix any of the following: + Element has insufficient color contrast of 1.27 (foreground color: #d4d7d8, background color: #edf1f2, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1", + "html": "<li>link a</li>", + "impact": "serious", + "none": Array [], + "target": Array [ + "li:nth-child(1)", + ], + }, + Object { + "all": Array [], +
[chromium] › src/components/dialog-full-screen/dialog-full-screen.pw.tsx:200:7 › render DialogFullScreen component and check properties › should always place focus on the inner dialog when tabbing with nested dialogs after focus is lost: src/components/dialog-full-screen/dialog-full-screen.pw.tsx#L220
2) [chromium] › src/components/dialog-full-screen/dialog-full-screen.pw.tsx:200:7 › render DialogFullScreen component and check properties › should always place focus on the inner dialog when tabbing with nested dialogs after focus is lost Error: Timed out 5000ms waiting for expect(received).toHaveCSS(expected) Expected string: "rgb(255, 188, 25) 0px 0px 0px 3px, rgba(0, 0, 0, 0.9) 0px 0px 0px 6px" Received string: "none" Call log: - expect.toHaveCSS with timeout 5000ms - waiting for locator('[data-element="close"]').nth(2) - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" - locator resolved to <button type="button" aria-label="Close" data-element="c…>…</button> - unexpected value "none" 218 | await page.keyboard.press("Tab"); 219 | const closeIcon = getDataElementByValue(page, "close").nth(2); > 220 | await expect(closeIcon).toHaveCSS( | ^ 221 | "box-shadow", 222 | "rgb(255, 188, 25) 0px 0px 0px 3px, rgba(0, 0, 0, 0.9) 0px 0px 0px 6px" 223 | ); at /__w/carbon/carbon/src/components/dialog-full-screen/dialog-full-screen.pw.tsx:220:29
playwright-react (chromium, 1, 1)
Process completed with exit code 1.
playwright-react (chromium, 1, 1)
Unexpected input(s) 'owner', 'repo', 'pull_number', valid inputs are ['route', 'mediaType']
playwright-react (chromium, 1, 1)
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
🎭 Playwright Run Summary
1 failed [chromium] › src/components/drawer/drawer.pw.tsx:356:9 › Accessibility tests for Drawer component › should pass accessibility tests when animation time is set to 3s 1 flaky [chromium] › src/components/dialog-full-screen/dialog-full-screen.pw.tsx:200:7 › render DialogFullScreen component and check properties › should always place focus on the inner dialog when tabbing with nested dialogs after focus is lost 3 skipped 2258 passed (24.5m)