Skip to content

fix: Make flashbar render no content when items are empty #4822

fix: Make flashbar render no content when items are empty

fix: Make flashbar render no content when items are empty #4822

Triggered via push October 10, 2024 17:25
Status Failure
Total duration 28m 18s
Artifacts

release.yml

on: push
Matrix: Components a11y tests
Components unit tests
6m 34s
Components unit tests
Components integ tests
28m 5s
Components integ tests
release  /  release
release / release
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
Base props support › flashbar › should allow className: src/__tests__/base-props-support.test.tsx#L28
expect(received).toHaveClass() received value must be an HTMLElement or an SVGElement. Received has value: null at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher [as toHaveClass] (node_modules/expect/build/index.js:326:15) at Object.<anonymous> (src/__tests__/base-props-support.test.tsx:28:47)
Base props support › flashbar › should allow id: src/__tests__/base-props-support.test.tsx#L33
expect(received).toHaveAttribute() received value must be an HTMLElement or an SVGElement. Received has value: null at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher (node_modules/expect/build/index.js:326:15) at Object.<anonymous> (src/__tests__/base-props-support.test.tsx:33:47)
Base props support › flashbar › should allow data-attributes: src/__tests__/base-props-support.test.tsx#L38
expect(received).toHaveAttribute() received value must be an HTMLElement or an SVGElement. Received has value: null at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher (node_modules/expect/build/index.js:326:15) at Object.<anonymous> (src/__tests__/base-props-support.test.tsx:38:47)
Base props support › flashbar › should not allow everything else: src/__tests__/base-props-support.test.tsx#L43
expect(received).not.toHaveAttribute() received value must be an HTMLElement or an SVGElement. Received has value: null at __EXTERNAL_MATCHER_TRAP__ (node_modules/expect/build/index.js:325:30) at Object.throwingMatcher (node_modules/expect/build/index.js:326:15) at Object.<anonymous> (src/__tests__/base-props-support.test.tsx:43:51)
Base props support › flashbar › className should not remove previous classes: src/__tests__/base-props-support.test.tsx#L48
TypeError: Cannot read properties of null (reading 'classList') at Object.<anonymous> (src/__tests__/base-props-support.test.tsx:48:81)
Base props support › flashbar › className: src/__tests__/base-props-support.test.tsx#L63
expect(received).toHaveLength(expected) Expected length: 1 Received length: 0 Received object: [] at Object.<anonymous> (src/__tests__/base-props-support.test.tsx:63:58)
renders flashbar without crashing: src/__tests__/ssr.test.ts#L27
expect(received).toBeGreaterThan(expected) Expected: > 0 Received: 0 at Object.<anonymous> (src/__tests__/ssr.test.ts:27:28)
Components unit tests
Process completed with exit code 1.
Components a11y tests (1)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Components a11y tests (4)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Components unit tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Components a11y tests (6)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Components a11y tests (5)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Components a11y tests (2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Components a11y tests (3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Components integ tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
RETRY 1: Dropdown width › keeps not overflowing the viewport after re-rendering wider › expandToViewport: false › with multiselect: src/internal/components/dropdown/__integ__/width.test.ts#L150
expect(received).resolves.toContain(expected) // indexOf Expected substring: "Loading" Received string: "A very very very very very very very very very very very very very very very very very very very very very very very very very very long text Short text" at Object.toContain (node_modules/expect/build/index.js:174:22) at src/internal/components/dropdown/__integ__/width.test.ts:150:63 at src/internal/components/dropdown/__integ__/width.test.ts:62:5 at node_modules/@cloudscape-design/browser-test-tools/use-browser.js:36:13
RETRY 2: Dropdown width › keeps not overflowing the viewport after re-rendering wider › expandToViewport: false › with multiselect: src/internal/components/dropdown/__integ__/width.test.ts#L150
expect(received).resolves.toContain(expected) // indexOf Expected substring: "Loading" Received string: "A very very very very very very very very very very very very very very very very very very very very very very very very very very long text Short text" at Object.toContain (node_modules/expect/build/index.js:174:22) at src/internal/components/dropdown/__integ__/width.test.ts:150:63 at src/internal/components/dropdown/__integ__/width.test.ts:62:5 at node_modules/@cloudscape-design/browser-test-tools/use-browser.js:36:13
RETRY 1: Dropdown width › keeps not overflowing the viewport after re-rendering wider › expandToViewport: true › with autosuggest: src/internal/components/dropdown/__integ__/width.test.ts#L150
expect(received).resolves.toContain(expected) // indexOf Expected substring: "Loading" Received string: "A very very very very very very very very very very very very very very very very very very very very very very very very very very long text description1 tag1 tag2 Short text This is a label tag" at Object.toContain (node_modules/expect/build/index.js:174:22) at src/internal/components/dropdown/__integ__/width.test.ts:150:63 at src/internal/components/dropdown/__integ__/width.test.ts:62:5 at node_modules/@cloudscape-design/browser-test-tools/use-browser.js:36:13