Testing: Add e2e test for basic ContrastChecker functionality #124316
Annotations
4 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/editor/various/contrast-checker.spec.js#L53
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')
51 | '.block-editor-contrast-checker'
52 | );
> 53 | await expect( lowContrastWarning ).toBeVisible();
| ^
54 | await expect( lowContrastWarning ).toContainText( WARNING_TEXT );
55 | } );
56 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:53:39
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:39:3
|
Run the tests:
test/e2e/specs/editor/various/contrast-checker.spec.js#L53
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')
51 | '.block-editor-contrast-checker'
52 | );
> 53 | await expect( lowContrastWarning ).toBeVisible();
| ^
54 | await expect( lowContrastWarning ).toContainText( WARNING_TEXT );
55 | } );
56 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:53:39
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:39:3
|
Run the tests:
test/e2e/specs/editor/various/contrast-checker.spec.js#L53
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')
51 | '.block-editor-contrast-checker'
52 | );
> 53 | await expect( lowContrastWarning ).toBeVisible();
| ^
54 | await expect( lowContrastWarning ).toContainText( WARNING_TEXT );
55 | } );
56 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:53:39
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/contrast-checker.spec.js:39:3
|
Run the tests
Process completed with exit code 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
|
Run the tests
1 failed
[chromium] › editor/various/contrast-checker.spec.js:13:2 › ContrastChecker › should show warning for insufficient contrast
1 skipped
184 passed (8.1m)
|
Loading