Add MissingElementError and use it within the Skip Link #9134
Triggered via pull request
September 7, 2023 14:23
Status
Cancelled
Total duration
6m 45s
Artifacts
–
tests.yml
on: pull_request
Matrix: Install
Matrix: Build
Matrix: lint
Percy
/
Send screenshots
1m 19s
Stats comment
/
Generate stats
23s
Matrix: package
Matrix: test
Matrix: verify
Annotations
11 errors
Banner › is visible by default:
packages/govuk-frontend-review/src/routes/banner.test.mjs#L6
TypeError: fetch failed
at Object.<anonymous> (packages/govuk-frontend-review/src/routes/banner.test.mjs:6:22)
|
JavaScript behaviour tests (ubuntu-latest)
Process completed with exit code 1.
|
Skip Link › errors at instantiation › throws when the linked element is missing:
packages/govuk-frontend/src/govuk/components/skip-link/skip-link.test.js#L93
expect(received).rejects.toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "message": "Skip link: Target selector \"#this-element-does-not-exist\" not found",
+ "message": "Skip link: Linked element selector \"#this-element-does-not-exist\" not found",
"name": "MissingElementError",
}
at Object.toEqual (node_modules/expect/build/index.js:218:22)
at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/skip-link/skip-link.test.js:93:17)
|
JavaScript component tests (ubuntu-latest)
Process completed with exit code 1.
|
JavaScript component tests (windows-latest)
Canceling since a higher priority waiting request for 'tests-bk-skip-link-error' exists
|
JavaScript component tests (windows-latest)
The operation was canceled.
|
JavaScript behaviour tests (windows-latest)
The operation was canceled.
|
Accessibility tests (windows-latest)
Canceling since a higher priority waiting request for 'tests-bk-skip-link-error' exists
|
Accessibility tests (windows-latest)
The operation was canceled.
|
Accessibility tests (ubuntu-latest)
Canceling since a higher priority waiting request for 'tests-bk-skip-link-error' exists
|
Accessibility tests (ubuntu-latest)
The operation was canceled.
|