Skip to content

File input new dropzone design #13208

File input new dropzone design

File input new dropzone design #13208

Triggered via pull request January 24, 2025 16:35
Status Failure
Total duration 5m 44s
Artifacts 5

tests.yml

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

Annotations

10 errors
/components/file-upload › /components/file-upload/preview › when JavaScript is available › dropzone › gets hidden when dropping on the field: packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L296
expect(received).resolves.toBeTruthy() Received: null at Object.toBeTruthy (node_modules/expect/build/index.js:174:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:296:65)
/components/file-upload › /components/file-upload/preview › when JavaScript is available › i18n › uses the correct translation for the choose file button: packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L366
expect(received).toBe(expected) // Object.is equality Expected: "Llwythwch ffeil i fyny, Dewiswch ffeil, Dim ffeiliau wedi'u dewis" Received: "Llwythwch ffeil i fyny, Dewiswch ffeil instruction, Dim ffeiliau wedi'u dewis" at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:366:34)
Error Summary › when linking to a file upload › scrolls the label or legend to the top of the screen: packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js#L201
Error: failed to find element matching selector "label[for="file"]" at CdpElementHandle.$eval (node_modules/puppeteer-core/src/api/ElementHandle.ts:497:13) at CdpFrame.$eval (node_modules/puppeteer-core/src/api/Frame.ts:631:12) at CdpPage.$eval (node_modules/puppeteer-core/src/api/Page.ts:1307:12) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js:201:44)
Error Summary › when linking to a file upload › does not include a hash in the URL: packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js#L213
expect(received).toBe(expected) // Object.is equality Expected: "" Received: "#file" at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js:213:22)
JavaScript component tests (ubuntu-22.04)
Process completed with exit code 1.
/components/file-upload › /components/file-upload/preview › when JavaScript is available › dropzone › gets hidden when dropping on the field: packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L296
expect(received).resolves.toBeTruthy() Received: null at Object.toBeTruthy (node_modules/expect/build/index.js:174:22) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:296:65)
/components/file-upload › /components/file-upload/preview › when JavaScript is available › i18n › uses the correct translation for the choose file button: packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L366
expect(received).toBe(expected) // Object.is equality Expected: "Llwythwch ffeil i fyny, Dewiswch ffeil, Dim ffeiliau wedi'u dewis" Received: "Llwythwch ffeil i fyny, Dewiswch ffeil instruction, Dim ffeiliau wedi'u dewis" at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:366:34)
Error Summary › when linking to a file upload › scrolls the label or legend to the top of the screen: packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js#L201
Error: failed to find element matching selector "label[for="file"]" at CdpElementHandle.$eval (node_modules/puppeteer-core/src/api/ElementHandle.ts:497:13) at CdpFrame.$eval (node_modules/puppeteer-core/src/api/Frame.ts:631:12) at CdpPage.$eval (node_modules/puppeteer-core/src/api/Page.ts:1307:12) at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js:201:44)
Error Summary › when linking to a file upload › does not include a hash in the URL: packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js#L213
expect(received).toBe(expected) // Object.is equality Expected: "" Received: "#file" at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/error-summary/error-summary.puppeteer.test.js:213:22)
JavaScript component tests (windows-latest)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
JavaScript behaviour tests coverage (ubuntu-22.04)
242 KB
JavaScript behaviour tests coverage (windows-latest)
242 KB
JavaScript unit tests coverage (ubuntu-22.04)
221 KB
JavaScript unit tests coverage (windows-latest)
221 KB
Package diff
7.1 KB