feat(Select): valueDisplay
and collapsibleItems
params expanded options
#4136
Annotations
10 errors
Run npm run test:
src/select/__tests__/select.test.tsx#L309
Error: expect(element).toHaveTextContent()
Expected element to have text content:
123_test1
Received:
❯ Proxy.expectWrapper node_modules/@vitest/expect/dist/index.js:1943:19
❯ Proxy.<anonymous> node_modules/@vitest/expect/dist/index.js:931:17
❯ Proxy.methodWrapper node_modules/chai/chai.js:1610:25
❯ src/select/__tests__/select.test.tsx:309:76
❯ Timeout._onTimeout test/utils/index.jsx:15:42
❯ listOnTimeout node:internal/timers:569:17
❯ processTimers node:internal/timers:512:7
This error originated in "src/select/__tests__/select.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "远程搜索多选测试". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Run npm run test:
src/date-picker/__tests__/date-picker.test.tsx#L228
AssertionError: expected '' to deeply equal '1 月'
- Expected
+ Received
- 1 月
❯ src/date-picker/__tests__/date-picker.test.tsx:228:52
|
Run npm run test:
src/date-picker/__tests__/date-range-picker.test.tsx#L199
AssertionError: expected '' to deeply equal '1 月'
- Expected
+ Received
- 1 月
❯ src/date-picker/__tests__/date-range-picker.test.tsx:199:52
|
Run npm run test:
src/pagination/__tests__/pagination.test.tsx#L34
TestingLibraryElementError: Unable to find an element with the display value: 5 条/页.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="t-pagination"
>
<div
class="t-pagination__total"
>
共 100 条数据
</div>
<div
class="t-pagination__select"
>
<div
class="t-select__wrap"
>
<div
class="t-select t-select-input t-select-input--empty"
>
<div
class="t-input__wrap t-input--auto-width"
spellcheck="false"
>
<div
class="t-input t-is-readonly t-align-left t-input--prefix t-input--suffix"
>
<div
class="t-input__prefix"
/>
<input
class="t-input__inner"
placeholder="请选择"
readonly=""
type="text"
value=""
/>
<span
class="t-input__input-pre"
>
请选择
</span>
<span
class="t-input__suffix t-input__suffix-icon"
>
<svg
class="t-fake-arrow t-select__right-icon"
fill="none"
height="16"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M3.75 5.7998L7.99274 10.0425L12.2361 5.79921"
stroke="black"
stroke-opacity="0.9"
stroke-width="1.3"
/>
</svg>
</span>
</div>
</div>
</div>
</div>
</div>
<div
class="t-pagination__btn t-pagination__btn-prev t-is-disabled"
>
<svg
class="t-icon t-icon-chevron-left"
fill="none"
height="1em"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M15.91 17.5l-5.5-5.5 5.5-5.5-1.41-1.41L7.59 12l6.91 6.91 1.41-1.41z"
fill="currentColor"
/>
</svg>
</div>
<ul
class="t-pagination__pager"
>
<li
class="t-pagination__number t-is-current"
>
1
</li>
<li
class="t-pagination__number"
>
2
</li>
<li
class="t-pagination__number"
>
3
</li>
<li
class="t-pagination__number"
>
4
</li>
<li
class="t-pagination__number"
>
5
</li>
<li
class="t-pagination__number t-pagination__number--more"
>
<svg
class="t-icon t-icon-ellipsis"
fill="none"
height="1em"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M3 10.5h3v3H3v-3zm7.5 0h3v3h-3v-3zm7.5 0h3v3h-3v-3z"
fill="currentColor"
/>
</svg>
</li>
<li
class="t-pagination__number"
>
20
</li>
</ul>
<div
class="t-pagination__btn t-pagination__btn-next"
>
<svg
class="t-icon t-icon-chevron-right"
fill="none"
height="1em"
viewBox="0 0 24 24"
width="1em"
>
<path
d="M8.09 17.5l5.5-5.5-5.5-5.5L9.5 5.09 16.41 12 9.5 18.91 8.09 17.5z"
fill="currentColor"
/>
</svg>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/react/node_modules/@testing-libr
|
Run npm run test:
src/select/__tests__/select.test.tsx#L125
Error: expect(element).toHaveValue(Banana)
Expected the element to have value:
Banana
Received:
❯ src/select/__tests__/select.test.tsx:125:55
|
Run npm run test:
src/select/__tests__/select.test.tsx#L170
Error: expect(element).toHaveTextContent()
Expected element to have text content:
Apple
Received:
❯ src/select/__tests__/select.test.tsx:170:52
|
Run npm run test:
src/select/__tests__/select.test.tsx#L215
Error: expect(element).toHaveValue(Banana)
Expected the element to have value:
Banana
Received:
❯ src/select/__tests__/select.test.tsx:215:55
|
Run npm run test:
src/table/__tests__/pagination.test.tsx#L39
Error: Snapshot `BaseTable Pagination > locale data pagination controlled > pagination.current changed 2` mismatched
- Expected
+ Received
@@ -174,17 +174,16 @@
>
<div
class="t-select__wrap"
>
<div
- class="t-select t-select-input"
+ class="t-select t-select-input t-select-input--empty"
>
<div
class="t-input__wrap t-input--auto-width"
spellcheck="false"
- value="5 条/页"
- >
+ >
<div
class="t-input t-is-readonly t-align-left t-input--prefix t-input--suffix"
>
<div
class="t-input__prefix"
@@ -192,16 +191,16 @@
<input
class="t-input__inner"
placeholder="请选择"
readonly=""
type="text"
- value="5 条/页"
+ value=""
/>
<span
class="t-input__input-pre"
>
- 5 条/页
+ 请选择
</span>
<span
class="t-input__suffix t-input__suffix-icon"
>
<svg
❯ src/table/__tests__/pagination.test.tsx:39:26
|
Run npm run test:
src/tag-input/useTagList.tsx#L108
TypeError: Cannot read properties of undefined (reading 'slice')
❯ renderLabel src/tag-input/useTagList.tsx:108:47
❯ src/tag-input/TagInput.tsx:153:14
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateForwardRef node_modules/react-dom/cjs/react-dom.development.js:19245:20
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21675:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
Run npm run test:
src/tag-input/useTagList.tsx#L108
TypeError: Cannot read properties of undefined (reading 'slice')
❯ renderLabel src/tag-input/useTagList.tsx:108:47
❯ src/tag-input/TagInput.tsx:153:14
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateForwardRef node_modules/react-dom/cjs/react-dom.development.js:19245:20
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21675:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
|
Loading