Skip to content

Testing: Add e2e test for basic ContrastChecker functionality #124344

Testing: Add e2e test for basic ContrastChecker functionality

Testing: Add e2e test for basic ContrastChecker functionality #124344

Triggered via pull request January 31, 2025 04:58
Status Failure
Total duration 18m 3s
Artifacts 2

end2end-test.yml

on: pull_request
Matrix: e2e-playwright
Merge Artifacts
5s
Merge Artifacts
Report to GitHub
0s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 8 warnings, and 8 notices
[chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast: test/e2e/specs/editor/various/contrast-checker.spec.js#L51
1) [chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast › Check white text on default background Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.block-editor-contrast-checker') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.block-editor-contrast-checker') 49 | await page.getByRole( 'option', { name: 'White' } ).click(); 50 | > 51 | await expect( lowContrastWarning ).toBeVisible(); | ^ 52 | await expect( lowContrastWarning ).toContainText( WARNING_TEXT ); 53 | } ); 54 | } ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:51:39 at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:40:3
[chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast: test/e2e/specs/editor/various/contrast-checker.spec.js#L51
1) [chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast › Check white text on default background Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.block-editor-contrast-checker') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.block-editor-contrast-checker') 49 | await page.getByRole( 'option', { name: 'White' } ).click(); 50 | > 51 | await expect( lowContrastWarning ).toBeVisible(); | ^ 52 | await expect( lowContrastWarning ).toContainText( WARNING_TEXT ); 53 | } ); 54 | } ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:51:39 at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:40:3
[chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast: test/e2e/specs/editor/various/contrast-checker.spec.js#L51
1) [chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast › Check white text on default background Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.block-editor-contrast-checker') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.block-editor-contrast-checker') 49 | await page.getByRole( 'option', { name: 'White' } ).click(); 50 | > 51 | await expect( lowContrastWarning ).toBeVisible(); | ^ 52 | await expect( lowContrastWarning ).toContainText( WARNING_TEXT ); 53 | } ); 54 | } ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:51:39 at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:40:3
Playwright - 3
Process completed with exit code 1.
[chromium] › site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L119
1) [chromium] › site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page Error: apiRequestContext.fetch: socket hang up Call log: - → GET http://localhost:8889/index.php?rest_route=%2Fwp%2Fv2%2Fpages&per_page=100&status=publish%2Cfuture%2Cdraft%2Cpending%2Cprivate%2Ctrash - user-agent: Playwright/1.49.1 (x64; ubuntu 24.04) node/20.18 CI/1 - accept: */* - accept-encoding: gzip,deflate,br - X-WP-Nonce: 9d9dc8d6fa - cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1738472709%7CfsWaSmvs8tnZqqidSQxuFC33qbW6MYjCrgrIGmGdKVM%7Cea3b57006d6a9f6de50bd38f03164fcef5690c1a614a408082a360e114e16fdf; wp-settings-time-1=1738300254 at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:119 117 | 118 | try { > 119 | const response = await this.request.fetch( url, { | ^ 120 | ...fetchOptions, 121 | failOnStatusCode: false, 122 | headers: { at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:119:39) at RequestUtils.deleteAllPages (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/pages.ts:47:27) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/homepage-settings.spec.js:30:17
[chromium] › site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page: test/e2e/specs/site-editor/homepage-settings.spec.js#L71
1) [chromium] › site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Error: strict mode violation: getByRole('row').filter({ has: getByRole('gridcell').getByLabel('Homepage') }) resolved to 2 elements: 1) <div class="" id=":rm:" role="row">…</div> aka getByRole('row', { name: 'Homepage Edit Actions Author' }).first() 2) <div class="" id=":ru:" role="row">…</div> aka getByRole('row', { name: 'Homepage Edit Actions Author' }).nth(1) Call log: - waiting for getByRole('row').filter({ has: getByRole('gridcell').getByLabel('Homepage') }) 69 | .getByRole( 'row' ) 70 | .filter( { has: samplePage } ); > 71 | await samplePageRow.click(); | ^ 72 | await samplePageRow 73 | .getByRole( 'button', { 74 | name: 'Actions', at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/homepage-settings.spec.js:71:23
Playwright - 1
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Playwright - 8
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Playwright - 7
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Playwright - 2
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Playwright - 5
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Playwright - 6
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Playwright - 3
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Playwright - 4
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
🎭 Playwright Run Summary
2 skipped 200 passed (5.6m)
🎭 Playwright Run Summary
1 failed [chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast 1 skipped 185 passed (7.5m)
🎭 Playwright Run Summary
1 flaky [chromium] › site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page 1 skipped 173 passed (7.8m)
🎭 Playwright Run Summary
1 skipped 210 passed (8.3m)
🎭 Playwright Run Summary
207 passed (8.7m)
🎭 Playwright Run Summary
1 skipped 224 passed (9.0m)
🎭 Playwright Run Summary
3 skipped 188 passed (9.7m)
🎭 Playwright Run Summary
1 skipped 206 passed (10.7m)

Artifacts

Produced during runtime
Name Size
failures-artifacts
8.52 MB
flaky-tests-report
1.92 KB