[v10] Add option to make tables sortable #5480
pull-request.yml
on: pull_request
Install
13s
Matrix: linting
Matrix: tests
Visual regression tests
4m 51s
Matrix: exports
Matrix: Sass import / sass
Sonar analysis
0s
Annotations
6 errors
|
JavaScript behaviour tests
Process completed with exit code 1.
|
|
Table › with numeric data and sortable columns › Configuration › should have default configuration values:
packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs#L343
expect(received).toBe(expected) // Object.is equality
Expected: "Sort by %heading% (%direction%)"
Received: "Sorted by %heading% (%direction%)"
at Object.toBe (packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs:343:46)
|
|
Table › with numeric data and sortable columns › Sorting › should update status message when sorting:
packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs#L315
expect(received).toBe(expected) // Object.is equality
Expected: "Sort by MMR (descending)"
Received: "Sorted by MMR (descending)"
at Object.toBe (packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs:315:38)
|
|
Table › with numeric data and sortable columns › Sorting › should reset other columns to "none" when sorting a column:
packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs#L299
expect(received).toBe(expected) // Object.is equality
Expected: "ascending"
Received: "none"
at Object.toBe (packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs:299:59)
|
|
Table › with numeric data and sortable columns › Sorting › should set aria-sort to ascending when clicking a button on a column currently in descending order:
packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs#L286
expect(received).toBe(expected) // Object.is equality
Expected: "descending"
Received: "ascending"
at Object.toBe (packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs:286:59)
|
|
Table › with numeric data and sortable columns › Sorting › should set aria-sort to descending when clicking a button on a column currently in ascending order:
packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs#L273
expect(received).toBe(expected) // Object.is equality
Expected: "ascending"
Received: "none"
at Object.toBe (packages/nhsuk-frontend/src/nhsuk/components/tables/table.jsdom.test.mjs:273:59)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Backstop report
|
22 MB |
sha256:20f63c1e92d5215a9968ad6093dc00f1d6ffb99b9bad29825c6ab63a2be98930
|
|
|
Build diff
|
2.29 MB |
sha256:5811e2348b4ae59401f3ce2be3f69ccdde185ab962a11caa026c263fa01ce17e
|
|
|
JavaScript component tests coverage
|
334 KB |
sha256:d5b04d3f5101037a58ab38d25ad8d0e9377501130509c6732931cced8f854745
|
|
|
JavaScript unit tests coverage
|
288 KB |
sha256:4f18a8b4d04d04faa0f36b690105bae87146de27755b076d6d713ec7f8da4819
|
|