fix(Cacader): fixed multiple issues #2446
pull-request.yml
on: pull_request
call-test-build
/
check
7s
call-test-build
/
test
2m 41s
call-test-build
/
site
1m 52s
call-test-build
/
build
3m 49s
Annotations
6 errors
src/cascader/__test__/index.test.jsx > cascader > props > : keys:
src/cascader/__test__/index.test.jsx#L192
AssertionError: expected '选择选项' to deeply equal '天津市天津市蓟州区'
Expected: "天津市天津市蓟州区"
Received: "选择选项"
❯ src/cascader/__test__/index.test.jsx:192:28
|
src/cascader/__test__/index.test.jsx > cascader > props > : value:
src/cascader/__test__/index.test.jsx#L201
AssertionError: expected '选择选项' to deeply equal '天津市天津市蓟州区'
Expected: "天津市天津市蓟州区"
Received: "选择选项"
❯ src/cascader/__test__/index.test.jsx:201:28
|
src/cascader/__test__/index.test.jsx > cascader > props > : title:
src/cascader/__test__/index.test.jsx#L213
AssertionError: expected '标题' to be 'tdesign-mobile-vue' // Object.is equality
Expected: "tdesign-mobile-vue"
Received: "标题"
❯ src/cascader/__test__/index.test.jsx:213:29
|
src/cascader/__test__/index.test.jsx > cascader > events > : close:
src/cascader/__test__/index.test.jsx#L296
AssertionError: expected last "spy" call to have been called with [ { trigger: 'close-btn' } ]
- Expected
+ Received
Array [
- Object {
- "trigger": "close-btn",
- },
+ "close-btn",
]
❯ src/cascader/__test__/index.test.jsx:296:23
|
src/cascader/__test__/index.test.jsx > cascader > events > : pick:
src/cascader/__test__/index.test.jsx#L308
Error: Snapshot `cascader > events > : pick 1` mismatched
- Expected
+ Received
@@ -18,11 +18,11 @@
class="t-cascader"
>
<div
class="t-cascader__title"
>
- <!---->
+ 标题
</div>
<div
class="t-cascader__close-btn"
>
<svg
@@ -40,56 +40,51 @@
</svg>
</div>
<div
class="t-cascader__content"
>
- <div>
- <div
+ <div
- class="t-cascader__steps"
+ class="t-cascader__steps"
- >
+ >
-
+
- <div
+ <div
- class="t-cascader__step"
+ class="t-cascader__step"
- >
- <div
+ >
+ <div
- class="t-cascader__step-dot t-cascader__step-dot--last"
+ class="t-cascader__step-dot t-cascader__step-dot--last"
- />
+ />
- <div
+ <div
- class="t-cascader__step-label t-cascader__step-label--active"
+ class="t-cascader__step-label t-cascader__step-label--active"
- >
+ >
-
- 选择选项
-
+ 选择选项
- </div>
+ </div>
- <svg
+ <svg
- class="t-icon t-icon-chevron-right t-cascader__step-arrow"
+ class="t-icon t-icon-chevron-right t-cascader__step-arrow"
- fill="none"
+ fill="none"
- height="1em"
+ height="1em"
- viewBox="0 0 24 24"
+ viewBox="0 0 24 24"
- width="1em"
+ width="1em"
- >
+ >
- <path
+ <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"
+ 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"
+ fill="currentColor"
- />
+ />
- </svg>
+ </svg>
- </div>
+ </div>
-
+
- </div>
+ </div>
- <!--v-if-->
- </div>
- <!--v-if-->
+ <!---->
<div
class="t-cascader__options-container"
style="width: 200vw; transform: translateX(-000vw);"
>
<div
class="t-cascader__options"
>
<div
- class="cascader-radio-group-0 slide-enter-from slide-enter-active"
+ class="t-cascader-radio-group-0 slide-enter-from slide-enter-active"
>
<div
class="t-radio-group"
role="radiogroup"
>
❯ src/cascader/__test__/index.test.jsx:308:31
|
call-test-build / test
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
_site
Expired
|
2.08 MB |
|
pr
|
139 Bytes |
|