Skip to content

chore: Refactor card into separate internal component #19213

chore: Refactor card into separate internal component

chore: Refactor card into separate internal component #19213

Triggered via pull request December 3, 2025 17:14
Status Failure
Total duration 8m 44s
Artifacts 2

build-lint-test.yml

on: pull_request
Matrix: build
Matrix: deploy
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 22 warnings
Cards selection › Common selection features "single" › can select items by clicking anywhere on the card when entireCardClickable is enabled: src/cards/__tests__/selection.test.tsx#L37
TypeError: Cannot read properties of undefined (reading '0') at expectSelected (src/cards/__tests__/selection.test.tsx:37:66) at Object.<anonymous> (src/cards/__tests__/selection.test.tsx:82:7)
Cards selection › Common selection features "single" › should display items as selected even when you pass non-existing items along in the selectedItems array: src/cards/__tests__/selection.test.tsx#L68
expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ - "0", + undefined, ] at Object.<anonymous> (src/cards/__tests__/selection.test.tsx:68:38)
Cards renders correct analytics metadata › without selection › with entireCardClickable=true: src/cards/__tests__/analytics-metadata.test.tsx#L255
TypeError: Cannot read properties of null (reading 'getElement') at src/cards/__tests__/analytics-metadata.test.tsx:255:85
Cards renders correct analytics metadata › without selection › with entireCardClickable=false: src/cards/__tests__/analytics-metadata.test.tsx#L255
TypeError: Cannot read properties of null (reading 'getElement') at src/cards/__tests__/analytics-metadata.test.tsx:255:85
Cards renders correct analytics metadata › selection › with trackBy=undefined › with entireCardClickable=true › single: src/cards/__tests__/analytics-metadata.test.tsx#L201
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:201:91)
Cards renders correct analytics metadata › selection › with trackBy=undefined › with entireCardClickable=true › multiple: src/cards/__tests__/analytics-metadata.test.tsx#L141
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:141:91)
Cards renders correct analytics metadata › selection › with trackBy=value › with entireCardClickable=true › single: src/cards/__tests__/analytics-metadata.test.tsx#L201
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:201:91)
Cards renders correct analytics metadata › selection › with trackBy=value › with entireCardClickable=true › multiple: src/cards/__tests__/analytics-metadata.test.tsx#L141
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:141:91)
Cards › items property › correctly renders card header when header is not provided: src/cards/__tests__/cards.test.tsx#L116
expect(received).toBeEmptyDOMElement() received value must be an HTMLElement or an SVGElement. Received has value: undefined at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toBeEmptyDOMElement] (node_modules/expect/build/index.js:326:15) at src/cards/__tests__/cards.test.tsx:116:36 at Array.forEach (<anonymous>) at Object.<anonymous> (src/cards/__tests__/cards.test.tsx:115:20)
Cards › items property › correctly renders card header: src/cards/__tests__/cards.test.tsx#L96
expect(received).toHaveTextContent() received value must be a Node. Received has value: undefined at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toHaveTextContent] (node_modules/expect/build/index.js:326:15) at src/cards/__tests__/cards.test.tsx:96:36 at Array.forEach (<anonymous>) at Object.<anonymous> (src/cards/__tests__/cards.test.tsx:94:20)
build (React 18) / build
The strategy configuration was canceled because "build._16" failed
Cards selection › Common selection features "single" › can select items by clicking anywhere on the card when entireCardClickable is enabled: src/cards/__tests__/selection.test.tsx#L37
TypeError: Cannot read properties of undefined (reading '0') at expectSelected (src/cards/__tests__/selection.test.tsx:37:66) at Object.<anonymous> (src/cards/__tests__/selection.test.tsx:82:7)
Cards selection › Common selection features "single" › should display items as selected even when you pass non-existing items along in the selectedItems array: src/cards/__tests__/selection.test.tsx#L68
expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ - "0", + undefined, ] at Object.<anonymous> (src/cards/__tests__/selection.test.tsx:68:38)
Cards renders correct analytics metadata › without selection › with entireCardClickable=true: src/cards/__tests__/analytics-metadata.test.tsx#L255
TypeError: Cannot read properties of null (reading 'getElement') at src/cards/__tests__/analytics-metadata.test.tsx:255:85
Cards renders correct analytics metadata › without selection › with entireCardClickable=false: src/cards/__tests__/analytics-metadata.test.tsx#L255
TypeError: Cannot read properties of null (reading 'getElement') at src/cards/__tests__/analytics-metadata.test.tsx:255:85
Cards renders correct analytics metadata › selection › with trackBy=undefined › with entireCardClickable=true › single: src/cards/__tests__/analytics-metadata.test.tsx#L201
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:201:91)
Cards renders correct analytics metadata › selection › with trackBy=undefined › with entireCardClickable=true › multiple: src/cards/__tests__/analytics-metadata.test.tsx#L141
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:141:91)
Cards renders correct analytics metadata › selection › with trackBy=value › with entireCardClickable=true › single: src/cards/__tests__/analytics-metadata.test.tsx#L201
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:201:91)
Cards renders correct analytics metadata › selection › with trackBy=value › with entireCardClickable=true › multiple: src/cards/__tests__/analytics-metadata.test.tsx#L141
TypeError: Cannot read properties of null (reading 'getElement') at Object.<anonymous> (src/cards/__tests__/analytics-metadata.test.tsx:141:91)
Cards › items property › correctly renders card header when header is not provided: src/cards/__tests__/cards.test.tsx#L116
expect(received).toBeEmptyDOMElement() received value must be an HTMLElement or an SVGElement. Received has value: undefined at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toBeEmptyDOMElement] (node_modules/expect/build/index.js:326:15) at src/cards/__tests__/cards.test.tsx:116:36 at Array.forEach (<anonymous>) at Object.<anonymous> (src/cards/__tests__/cards.test.tsx:115:20)
Cards › items property › correctly renders card header: src/cards/__tests__/cards.test.tsx#L96
expect(received).toHaveTextContent() received value must be a Node. Received has value: undefined at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toHaveTextContent] (node_modules/expect/build/index.js:326:15) at src/cards/__tests__/cards.test.tsx:96:36 at Array.forEach (<anonymous>) at Object.<anonymous> (src/cards/__tests__/cards.test.tsx:94:20)
Build, lint and test
The strategy configuration was canceled because "build._16" failed
build / codeql
CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/
build (React 18) / codeql
CodeQL Action v3 will be deprecated in December 2026. Please update all occurrences of the CodeQL Action in your workflow files to v4. For more information, see https://github.blog/changelog/2025-10-28-upcoming-deprecation-of-codeql-action-v3/
build / build: src/app-layout/__integ__/app-layout-focus-delegation.test.ts#L192
Unexpected 'todo' comment: 'todo - investigate why resize observer...'
build / build: src/app-layout/__integ__/app-layout-drawers.test.ts#L227
Unexpected 'todo' comment: 'todo: resolve split panel positioning...'
build / build: pages/utils/permutations-view.tsx#L18
Unexpected 'todo' comment: 'TODO: Pretty-print original JSX,...'
build / build: pages/steps/with-updates.page.tsx#L167
JSX element uses aria-live property. Prefer using LiveRegion component instead
build / build: pages/steps/with-updates.page.tsx#L155
JSX element uses aria-live property. Prefer using LiveRegion component instead
build / build: pages/steps/with-updates.page.tsx#L143
JSX element uses aria-live property. Prefer using LiveRegion component instead
build / build: pages/steps/with-updates.page.tsx#L127
JSX element uses aria-live property. Prefer using LiveRegion component instead
build / build: pages/form-field/form-field-columns.page.tsx#L20
Unexpected 'todo' comment: 'TODO: Replace this with Select'
build / build: pages/button/alignment.page.tsx#L25
Unexpected 'todo' comment: 'TODO: uncomment when we add...'
build (React 18) / build: src/app-layout/__integ__/app-layout-focus-delegation.test.ts#L192
Unexpected 'todo' comment: 'todo - investigate why resize observer...'
build (React 18) / build: src/app-layout/__integ__/app-layout-drawers.test.ts#L227
Unexpected 'todo' comment: 'todo: resolve split panel positioning...'
build (React 18) / build: pages/utils/permutations-view.tsx#L18
Unexpected 'todo' comment: 'TODO: Pretty-print original JSX,...'
build (React 18) / build: pages/steps/with-updates.page.tsx#L167
JSX element uses aria-live property. Prefer using LiveRegion component instead
build (React 18) / build: pages/steps/with-updates.page.tsx#L155
JSX element uses aria-live property. Prefer using LiveRegion component instead
build (React 18) / build: pages/steps/with-updates.page.tsx#L143
JSX element uses aria-live property. Prefer using LiveRegion component instead
build (React 18) / build: pages/steps/with-updates.page.tsx#L127
JSX element uses aria-live property. Prefer using LiveRegion component instead
build (React 18) / build: pages/form-field/form-field-columns.page.tsx#L20
Unexpected 'todo' comment: 'TODO: Replace this with Select'
build (React 18) / build: pages/button/alignment.page.tsx#L25
Unexpected 'todo' comment: 'TODO: uncomment when we add...'

Artifacts

Produced during runtime
Name Size Digest
dev-pages-react16
14.3 MB
sha256:de10ea0ba114373f7085c1283914a67b99de542d09096a44b31388e1bf04a660
dev-pages-react18
14.4 MB
sha256:7099124c7c1e2341353d1b6661d9606ccc160bfeb102dce2c5f8a9075a63675e