From dd1a53594345c80d02673c5dbae58a860b91ded2 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 22 May 2022 17:01:43 +0800 Subject: [PATCH] test: update test --- .../__tests__/__snapshots__/demo.test.js.snap | 33 +- .../__snapshots__/Breadcrumb.test.js.snap | 52 +- .../__tests__/__snapshots__/demo.test.js.snap | 69 +- .../__tests__/__snapshots__/demo.test.js.snap | 38 +- .../__snapshots__/index.test.js.snap | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 38 +- .../__snapshots__/index.test.js.snap | 30 +- .../__tests__/__snapshots__/demo.test.js.snap | 91 +- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__tests__/__snapshots__/demo.test.js.snap | 3 +- .../__tests__/__snapshots__/demo.test.js.snap | 10 +- .../__snapshots__/index.test.js.snap | 10 +- .../__snapshots__/DatePicker.test.js.snap | 4 +- .../__snapshots__/QuarterPicker.test.js.snap | 3 +- .../__snapshots__/RangePicker.test.js.snap | 3 +- .../__snapshots__/WeekPicker.test.js.snap | 3 +- .../__tests__/__snapshots__/demo.test.js.snap | 268 +++- .../__snapshots__/other.test.js.snap | 16 +- .../__tests__/__snapshots__/demo.test.js.snap | 82 + .../__tests__/__snapshots__/demo.test.js.snap | 9 +- .../__tests__/__snapshots__/demo.test.js.snap | 1231 +++++++++------ components/form/demo/index.vue | 5 +- components/form/demo/validation.vue | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 208 +-- .../__snapshots__/index.test.js.snap | 10 +- .../__tests__/__snapshots__/demo.test.js.snap | 60 +- components/input/Input.tsx | 1 + .../__tests__/__snapshots__/demo.test.js.snap | 87 +- .../__snapshots__/index.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 39 +- .../__tests__/__snapshots__/demo.test.js.snap | 24 +- .../__snapshots__/index.test.js.snap | 1326 +++++++++++------ .../__tests__/__snapshots__/demo.test.js.snap | 36 +- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__tests__/__snapshots__/demo.test.js.snap | 30 +- .../__tests__/__snapshots__/demo.test.js.snap | 95 +- .../__snapshots__/index.test.js.snap | 3 +- .../__tests__/__snapshots__/demo.test.js.snap | 41 +- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__tests__/__snapshots__/demo.test.js.snap | 14 +- components/tree/demo/dynamic.vue | 2 +- 41 files changed, 2671 insertions(+), 1359 deletions(-) diff --git a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap index 552d8ff58..75b373fd1 100644 --- a/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap +++ b/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap @@ -17,7 +17,7 @@ exports[`renders ./components/auto-complete/demo/certain-category.vue correctly
@@ -412,7 +415,8 @@ exports[`renders ./components/calendar/demo/card.vue correctly 1`] = `
Nov -
+
@@ -797,27 +801,29 @@ exports[`renders ./components/calendar/demo/customize-header.vue correctly 1`] =
Custom header
-
-
+
+
-
+
2016 -
+
-
+
Nov -
+
@@ -1206,7 +1212,8 @@ exports[`renders ./components/calendar/demo/notice-calendar.vue correctly 1`] =
2016 -
+
@@ -1214,7 +1221,8 @@ exports[`renders ./components/calendar/demo/notice-calendar.vue correctly 1`] =
Nov -
+
@@ -1630,7 +1638,8 @@ exports[`renders ./components/calendar/demo/select.vue correctly 1`] = `
2017 -
+
@@ -1638,7 +1647,8 @@ exports[`renders ./components/calendar/demo/select.vue correctly 1`] = `
Jan -
+
diff --git a/components/calendar/__tests__/__snapshots__/index.test.js.snap b/components/calendar/__tests__/__snapshots__/index.test.js.snap index 03a4dbfb2..8c097fc2d 100644 --- a/components/calendar/__tests__/__snapshots__/index.test.js.snap +++ b/components/calendar/__tests__/__snapshots__/index.test.js.snap @@ -8,7 +8,8 @@ exports[`Calendar Calendar should support locale 1`] = `
2018年 -
+
@@ -16,7 +17,8 @@ exports[`Calendar Calendar should support locale 1`] = `
Oct -
+
diff --git a/components/card/__tests__/__snapshots__/demo.test.js.snap b/components/card/__tests__/__snapshots__/demo.test.js.snap index 89623db93..1ae40a182 100644 --- a/components/card/__tests__/__snapshots__/demo.test.js.snap +++ b/components/card/__tests__/__snapshots__/demo.test.js.snap @@ -100,8 +100,8 @@ exports[`renders ./components/card/demo/grid-card.vue correctly 1`] = ` exports[`renders ./components/card/demo/in-column.vue correctly 1`] = `
-
-
+
+
@@ -117,7 +117,7 @@ exports[`renders ./components/card/demo/in-column.vue correctly 1`] = `
-
+
@@ -133,7 +133,7 @@ exports[`renders ./components/card/demo/in-column.vue correctly 1`] = `
-
+
@@ -206,43 +206,43 @@ exports[`renders ./components/card/demo/loading.vue correctly 1`] = `
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
+
diff --git a/components/card/__tests__/__snapshots__/index.test.js.snap b/components/card/__tests__/__snapshots__/index.test.js.snap index 5c0c2a300..7a41dfbe2 100644 --- a/components/card/__tests__/__snapshots__/index.test.js.snap +++ b/components/card/__tests__/__snapshots__/index.test.js.snap @@ -6,43 +6,43 @@ exports[`Card should still have padding when card which set padding to 0 is load
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
+
diff --git a/components/cascader/__tests__/__snapshots__/demo.test.js.snap b/components/cascader/__tests__/__snapshots__/demo.test.js.snap index 67102bc6b..cc86cd0d3 100644 --- a/components/cascader/__tests__/__snapshots__/demo.test.js.snap +++ b/components/cascader/__tests__/__snapshots__/demo.test.js.snap @@ -6,7 +6,8 @@ exports[`renders ./components/cascader/demo/basic.vue correctly 1`] = `
Please select -
+
`; @@ -17,7 +18,8 @@ exports[`renders ./components/cascader/demo/change-on-select.vue correctly 1`] =
Please select -
+
`; @@ -28,7 +30,8 @@ exports[`renders ./components/cascader/demo/custom-render.vue correctly 1`] = `
Zhejiang /Hangzhou /West Lake ( 752100 ) -
+
`; @@ -40,7 +43,8 @@ exports[`renders ./components/cascader/demo/disabled-option.vue correctly 1`] =
Please select -
+
`; @@ -51,7 +55,8 @@ exports[`renders ./components/cascader/demo/fields-name.vue correctly 1`] = `
Please select -
+
`; @@ -62,7 +67,8 @@ exports[`renders ./components/cascader/demo/hover.vue correctly 1`] = `
Please select -
+
`; @@ -73,25 +79,57 @@ exports[`renders ./components/cascader/demo/lazy.vue correctly 1`] = `
Please select -
+
`; exports[`renders ./components/cascader/demo/multiple.vue correctly 1`] = ` -
- - -
-
- -
- -
- -
Please select +
+
+

Cascader.SHOW_PARENT

+
+
+ + +
+
+ +
+ +
+ +
Please select +
+ + +
+
+ +
+

Cascader.SHOW_CHILD

+
+ +
+
+ + +
+
+ +
+ +
+ +
Please select +
+ + +
+
`; @@ -102,7 +140,8 @@ exports[`renders ./components/cascader/demo/search.vue correctly 1`] = `
Please select -
+
`; @@ -113,7 +152,8 @@ exports[`renders ./components/cascader/demo/size.vue correctly 1`] = `
Please select -
+

@@ -123,7 +163,8 @@ exports[`renders ./components/cascader/demo/size.vue correctly 1`] = `
Please select -
+

@@ -133,7 +174,8 @@ exports[`renders ./components/cascader/demo/size.vue correctly 1`] = `
Please select -
+

@@ -148,7 +190,8 @@ exports[`renders ./components/cascader/demo/suffix.vue correctly 1`] = `
Please select -
+
@@ -159,7 +202,7 @@ exports[`renders ./components/cascader/demo/suffix.vue correctly 1`] = `
Please select -
+
diff --git a/components/checkbox/__tests__/__snapshots__/demo.test.js.snap b/components/checkbox/__tests__/__snapshots__/demo.test.js.snap index 01ce052f8..04205005c 100644 --- a/components/checkbox/__tests__/__snapshots__/demo.test.js.snap +++ b/components/checkbox/__tests__/__snapshots__/demo.test.js.snap @@ -44,12 +44,12 @@ exports[`renders ./components/checkbox/demo/group.vue correctly 1`] = ` exports[`renders ./components/checkbox/demo/layout.vue correctly 1`] = `
-
-
-
-
-
-
+
+
+
+
+
+
`; diff --git a/components/collapse/__tests__/__snapshots__/demo.test.js.snap b/components/collapse/__tests__/__snapshots__/demo.test.js.snap index b07633ada..580c109f3 100644 --- a/components/collapse/__tests__/__snapshots__/demo.test.js.snap +++ b/components/collapse/__tests__/__snapshots__/demo.test.js.snap @@ -148,7 +148,8 @@ exports[`renders ./components/collapse/demo/extra.vue correctly 1`] = `
left -
+
`; diff --git a/components/comment/__tests__/__snapshots__/demo.test.js.snap b/components/comment/__tests__/__snapshots__/demo.test.js.snap index 002c75586..12e2e15b6 100644 --- a/components/comment/__tests__/__snapshots__/demo.test.js.snap +++ b/components/comment/__tests__/__snapshots__/demo.test.js.snap @@ -31,25 +31,23 @@ exports[`renders ./components/comment/demo/editor.vue correctly 1`] = `
-
+
-
+
-
-
+
-
+
-
diff --git a/components/comment/__tests__/__snapshots__/index.test.js.snap b/components/comment/__tests__/__snapshots__/index.test.js.snap index 99acaabac..5a74f25d9 100644 --- a/components/comment/__tests__/__snapshots__/index.test.js.snap +++ b/components/comment/__tests__/__snapshots__/index.test.js.snap @@ -42,25 +42,23 @@ exports[`Comment Comment can be used as editor, user can customize the editor co
-
+
-
+
-
-
+
-
+
-
diff --git a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap index 6c3b99d1f..7ea2d4a8c 100644 --- a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap @@ -2,7 +2,9 @@ exports[`DatePicker prop locale should works 1`] = `
-
+
+ +