CustomSelectControlV2
: fix handling of extra attributes passed to options
in the legacy adapter
#106076
Annotations
8 errors and 1 warning
packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx#L341
Error: expect(jest.fn()).toHaveReturnedWith(expected)
Expected: "flower1"
Received
1: "violets"
2: "poppy"
Number of returns: 2
at Object.toHaveReturnedWith (/home/runner/work/gutenberg/gutenberg/packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx:341:26)
|
packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx#L496
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: ObjectContaining {"selectedItem": ObjectContaining {"className": "amber-skies", "style": {"backgroundColor": "rgb(127, 255, 212)", "rotate": "13deg"}}}
Received
1: {"highlightedIndex": -1, "inputValue": "", "isOpen": false, "selectedItem": {"key": "violets", "name": "violets"}, "type": ""}
2: {"highlightedIndex": 5, "inputValue": "", "isOpen": false, "selectedItem": {"key": "aquarela", "name": "aquarela"}, "type": ""}
Number of calls: 2
at Object.toHaveBeenCalledWith (/home/runner/work/gutenberg/gutenberg/packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx:496:26)
|
packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx#L521
Error: expect(element).toHaveTextContent()
Expected element to have text content:
aquarela
Received:
violets
at Object.toHaveTextContent (/home/runner/work/gutenberg/gutenberg/packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx:521:33)
|
packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx#L293
Error: expect(jest.fn()).toHaveBeenNthCalledWith(n, ...expected)
n: 1
Expected: ObjectContaining {"inputValue": "", "isOpen": false, "selectedItem": {"key": "flower1", "name": "violets"}, "type": ""}
Received: {"highlightedIndex": -1, "inputValue": "", "isOpen": false, "selectedItem": {"key": "violets", "name": "violets"}, "type": ""}
Number of calls: 1
at Object.toHaveBeenNthCalledWith (/home/runner/work/gutenberg/gutenberg/packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx:293:26)
|
packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx#L341
Error: expect(jest.fn()).toHaveReturnedWith(expected)
Expected: "flower1"
Received
1: "violets"
2: "poppy"
Number of returns: 2
at Object.toHaveReturnedWith (/home/runner/work/gutenberg/gutenberg/packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx:341:26)
|
packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx#L496
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: ObjectContaining {"selectedItem": ObjectContaining {"className": "amber-skies", "style": {"backgroundColor": "rgb(127, 255, 212)", "rotate": "13deg"}}}
Received
1: {"highlightedIndex": -1, "inputValue": "", "isOpen": false, "selectedItem": {"key": "violets", "name": "violets"}, "type": ""}
2: {"highlightedIndex": 5, "inputValue": "", "isOpen": false, "selectedItem": {"key": "aquarela", "name": "aquarela"}, "type": ""}
Number of calls: 2
at Object.toHaveBeenCalledWith (/home/runner/work/gutenberg/gutenberg/packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx:496:26)
|
packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx#L521
Error: expect(element).toHaveTextContent()
Expected element to have text content:
aquarela
Received:
violets
at Object.toHaveTextContent (/home/runner/work/gutenberg/gutenberg/packages/components/src/custom-select-control-v2/legacy-component/test/index.tsx:521:33)
|
|
|
This job failed
Loading