Use button element for entire input replacement #13067
Annotations
5 errors
Run test task:
packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L92
expect(received).toBe(expected) // Object.is equality
Expected: "button"
Received: null
at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:92:39)
|
Run test task:
packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L100
expect(received).toBe(expected) // Object.is equality
Expected: "Choose file"
Received: "<span class=\"govuk-button govuk-button--secondary govuk-file-upload__pseudo-button\">Choose file</span><span class=\"govuk-body govuk-file-upload__status\">No file chosen</span>"
at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:100:39)
|
Run test task:
packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L116
expect(received).toBe(expected) // Object.is equality
Expected: "status"
Received: null
at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:116:39)
|
Run test task:
packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js#L259
expect(received).toBe(expected) // Object.is equality
Expected: "Dewiswch ffeil"
Received: "<span class=\"govuk-button govuk-button--secondary govuk-file-upload__pseudo-button\">Dewiswch ffeil</span><span class=\"govuk-body govuk-file-upload__status\">Dim ffeiliau wedi'u dewis</span>"
at Object.<anonymous> (packages/govuk-frontend/src/govuk/components/file-upload/file-upload.puppeteer.test.js:259:30)
|
Run test task
Process completed with exit code 1.
|
Loading