Skip to content

Make components use formatErrorMessage for error messages #12497

Make components use formatErrorMessage for error messages

Make components use formatErrorMessage for error messages #12497

Triggered via pull request September 27, 2024 17:33
Status Cancelled
Total duration 3m 33s
Artifacts 2

tests.yml

on: pull_request
Matrix: Install
Matrix: Build
Diff changes to npm package  /  Generate diff
1m 2s
Diff changes to npm package / Generate diff
Stats comment  /  Generate stats
35s
Stats comment / Generate stats
Matrix: lint
Percy  /  Send screenshots
45s
Percy / Send screenshots
Matrix: Bundler integrations / Test tree shaking
Matrix: package
Matrix: test
Matrix: verify
Fit to window
Zoom out
Zoom in

Annotations

24 errors
Lint JavaScript (ubuntu-latest)
Process completed with exit code 1.
Lint JavaScript (windows-latest)
Process completed with exit code 1.
Accessibility tests (windows-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
Verify distribution build (windows-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
Verify package build (windows-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
JavaScript component tests (windows-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
JavaScript behaviour tests (windows-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
Nunjucks macro tests (windows-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
JavaScript unit tests (windows-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
JavaScript unit tests (ubuntu-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
JavaScript unit tests (ubuntu-latest)
The operation was canceled.
Verify package build (ubuntu-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
JavaScript component tests (ubuntu-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
Accessibility tests (ubuntu-latest)
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
Accessibility tests (ubuntu-latest)
The operation was canceled.
/components/accordion › /components/accordion/preview › when JavaScript is available › errors at instantiation › throws when initialised twice: packages/govuk-frontend/src/govuk/components/accordion/accordion.puppeteer.test.js#L725
expect(received).rejects.toMatchObject(expected) - Expected - 1 + Received + 0 Object { - "message": "Root element (`$root`) already initialised (`govuk-accordion`)", "name": "InitError", } at Object.toMatchObject (node_modules/expect/build/index.js:218:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/accordion/accordion.puppeteer.test.js:725:21)
Checkboxes › with multiple groups and a "None" checkbox and conditional reveals › when JavaScript is available › errors at instantiation › throws when initialised twice: packages/govuk-frontend/src/govuk/components/checkboxes/checkboxes.puppeteer.test.js#L380
expect(received).rejects.toMatchObject(expected) - Expected - 1 + Received + 0 Object { - "message": "Root element (`$root`) already initialised (`govuk-checkboxes`)", "name": "InitError", } at Object.toMatchObject (node_modules/expect/build/index.js:218:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/checkboxes/checkboxes.puppeteer.test.js:380:21)
Radios › errors at instantiation › throws when initialised twice: packages/govuk-frontend/src/govuk/components/radios/radios.puppeteer.test.js#L333
expect(received).rejects.toMatchObject(expected) - Expected - 1 + Received + 0 Object { - "message": "Root element (`$root`) already initialised (`govuk-radios`)", "name": "InitError", } at Object.toMatchObject (node_modules/expect/build/index.js:218:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/radios/radios.puppeteer.test.js:333:17)
/components/tabs › /components/tabs/preview › errors at instantiation › throws when initialised twice: packages/govuk-frontend/src/govuk/components/tabs/tabs.puppeteer.test.js#L282
expect(received).rejects.toMatchObject(expected) - Expected - 1 + Received + 0 Object { - "message": "Root element (`$root`) already initialised (`govuk-tabs`)", "name": "InitError", } at Object.toMatchObject (node_modules/expect/build/index.js:218:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/tabs/tabs.puppeteer.test.js:282:19)
/components/button › preventing double clicks › errors at instantiation › throws when initialised twice: packages/govuk-frontend/src/govuk/components/button/button.puppeteer.test.js#L342
expect(received).rejects.toMatchObject(expected) - Expected - 1 + Received + 0 Object { - "message": "Root element (`$root`) already initialised (`govuk-button`)", "name": "InitError", } at Object.toMatchObject (node_modules/expect/build/index.js:218:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/button/button.puppeteer.test.js:342:19)
/components/exit-this-page › when JavaScript is available › errors at instantiation › throws when initialised twice: packages/govuk-frontend/src/govuk/components/exit-this-page/exit-this-page.puppeteer.test.js#L244
expect(received).rejects.toMatchObject(expected) - Expected - 1 + Received + 0 Object { - "message": "Root element (`$root`) already initialised (`govuk-exit-this-page`)", "name": "InitError", } at Object.toMatchObject (node_modules/expect/build/index.js:218:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/exit-this-page/exit-this-page.puppeteer.test.js:244:19)
JavaScript component tests (ubuntu-latest)
The operation was canceled.
Percy / Send screenshots
Canceling since a higher priority waiting request for 'tests-use-formaterrormessage' exists
Percy / Send screenshots
The operation was canceled.

Artifacts

Produced during runtime
Name Size
JavaScript behaviour tests coverage (ubuntu-latest)
243 KB
Package diff
4.83 KB