fix: Make flashbar render no content when items are empty #4822
release.yml
on: push
Matrix: Components a11y tests
Components unit tests
6m 34s
Components integ tests
28m 5s
release
/
release
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)
|
useBaseComponent hook is used in all allowlisted public components › components not on the to-do list have metadata attached › flashbar: component root DOM node has metadata property attached:
src/__tests__/use-base-component.test.tsx#L35
expect(received).not.toBeNull()
Received: null
at Object.<anonymous> (src/__tests__/use-base-component.test.tsx:35:37)
|
useBaseComponent hook is used in all allowlisted public components › components not on the to-do list have metadata attached › flashbar: childs nodes do not have metadata property attached:
src/__tests__/use-base-component.test.tsx#L45
TypeError: Cannot read properties of null (reading 'hasChildNodes')
at Object.<anonymous> (src/__tests__/use-base-component.test.tsx:45:29)
|
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
|