From 24c4c845769d77e9b5763926d27b450c66c370ff Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 2 Sep 2022 16:16:03 +0800 Subject: [PATCH] test: update snap --- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 20 +- .../__tests__/__snapshots__/demo.test.js.snap | 22 +- .../__tests__/__snapshots__/demo.test.js.snap | 63 +- .../__tests__/__snapshots__/demo.test.js.snap | 30 +- .../__tests__/__snapshots__/demo.test.js.snap | 24 +- .../__tests__/__snapshots__/demo.test.js.snap | 110 +-- .../__tests__/__snapshots__/demo.test.js.snap | 38 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 3 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 - .../__tests__/__snapshots__/demo.test.js.snap | 189 +++-- .../__tests__/__snapshots__/demo.test.js.snap | 9 +- .../__tests__/__snapshots__/demo.test.js.snap | 212 ++---- .../__tests__/__snapshots__/demo.test.js.snap | 2 - .../__tests__/__snapshots__/demo.test.js.snap | 12 +- components/input/Group.tsx | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 65 +- .../__tests__/__snapshots__/demo.test.js.snap | 90 ++- .../__tests__/__snapshots__/demo.test.js.snap | 12 +- .../__tests__/__snapshots__/demo.test.js.snap | 3 - .../__tests__/__snapshots__/demo.test.js.snap | 2 +- components/menu/__tests__/index.test.js | 19 +- .../__tests__/__snapshots__/demo.test.js.snap | 669 +++++++++++------- .../__tests__/__snapshots__/demo.test.js.snap | 30 +- .../__tests__/__snapshots__/demo.test.js.snap | 75 +- .../__tests__/__snapshots__/demo.test.js.snap | 5 - .../__tests__/__snapshots__/demo.test.js.snap | 14 +- .../__tests__/__snapshots__/demo.test.js.snap | 24 +- .../__tests__/__snapshots__/demo.test.js.snap | 55 +- .../__tests__/__snapshots__/demo.test.js.snap | 312 ++++---- .../__tests__/__snapshots__/demo.test.js.snap | 68 +- components/time-picker/time-picker.tsx | 9 +- .../__tests__/__snapshots__/demo.test.js.snap | 238 ++----- .../__tests__/__snapshots__/demo.test.js.snap | 21 +- tests/shared/demoTest.js | 7 +- 37 files changed, 1272 insertions(+), 1196 deletions(-) diff --git a/components/anchor/__tests__/__snapshots__/demo.test.js.snap b/components/anchor/__tests__/__snapshots__/demo.test.js.snap index a06050b82..23a0acd91 100644 --- a/components/anchor/__tests__/__snapshots__/demo.test.js.snap +++ b/components/anchor/__tests__/__snapshots__/demo.test.js.snap @@ -32,11 +32,11 @@ exports[`renders ./components/anchor/demo/basic.vue correctly 1`] = ` exports[`renders ./components/anchor/demo/customizeHighlight.vue correctly 1`] = `
-
+
-
@@ -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/card/__tests__/__snapshots__/demo.test.js.snap b/components/card/__tests__/__snapshots__/demo.test.js.snap index 89623db93..1ebaba9cb 100644 --- a/components/card/__tests__/__snapshots__/demo.test.js.snap +++ b/components/card/__tests__/__snapshots__/demo.test.js.snap @@ -302,11 +302,11 @@ exports[`renders ./components/card/demo/tabs.vue correctly 1`] = `
- +
- +
@@ -314,7 +314,7 @@ exports[`renders ./components/card/demo/tabs.vue correctly 1`] = `
- +
@@ -322,10 +322,10 @@ exports[`renders ./components/card/demo/tabs.vue correctly 1`] = `
-
+
- @@ -350,15 +350,15 @@ exports[`renders ./components/card/demo/tabs.vue correctly 1`] = `
- +
- +
- +
@@ -366,7 +366,7 @@ exports[`renders ./components/card/demo/tabs.vue correctly 1`] = `
- +
@@ -374,13 +374,13 @@ exports[`renders ./components/card/demo/tabs.vue correctly 1`] = `
- @@ -143,7 +147,8 @@ exports[`renders ./components/pagination/demo/jump.vue correctly 1`] = `
10 / page -
+
Go to @@ -168,7 +173,8 @@ exports[`renders ./components/pagination/demo/jump.vue correctly 1`] = `
10 / page -
+
Go to @@ -207,7 +213,8 @@ exports[`renders ./components/pagination/demo/mini.vue correctly 1`] = `
10 / page -
+
Go to @@ -253,7 +260,8 @@ exports[`renders ./components/pagination/demo/more.vue correctly 1`] = `
10 / page -
+
@@ -287,7 +295,8 @@ exports[`renders ./components/pagination/demo/total.vue correctly 1`] = `
20 / page -
+ @@ -308,7 +317,8 @@ exports[`renders ./components/pagination/demo/total.vue correctly 1`] = `
20 / page -
+ diff --git a/components/select/__tests__/__snapshots__/demo.test.js.snap b/components/select/__tests__/__snapshots__/demo.test.js.snap index eeeb24b7f..6d7d75dfb 100644 --- a/components/select/__tests__/__snapshots__/demo.test.js.snap +++ b/components/select/__tests__/__snapshots__/demo.test.js.snap @@ -27,7 +27,8 @@ exports[`renders ./components/select/demo/basic.vue correctly 1`] = `
Lucy -
+ @@ -38,7 +39,8 @@ exports[`renders ./components/select/demo/basic.vue correctly 1`] = `
Lucy -
+ @@ -49,7 +51,8 @@ exports[`renders ./components/select/demo/basic.vue correctly 1`] = `
Lucy -
+ @@ -63,7 +66,8 @@ exports[`renders ./components/select/demo/basic.vue correctly 1`] = `
Lucy -
+ @@ -74,7 +78,8 @@ exports[`renders ./components/select/demo/basic.vue correctly 1`] = `
Lucy -
+ @@ -85,7 +90,8 @@ exports[`renders ./components/select/demo/basic.vue correctly 1`] = `
Lucy -
+ @@ -93,30 +99,6 @@ exports[`renders ./components/select/demo/basic.vue correctly 1`] = ` `; -exports[`renders ./components/select/demo/big-data.vue correctly 1`] = ` -

100000 Items

- -`; - exports[`renders ./components/select/demo/coordinate.vue correctly 1`] = `
@@ -125,7 +107,8 @@ exports[`renders ./components/select/demo/coordinate.vue correctly 1`] = `
Zhejiang -
+
@@ -136,7 +119,8 @@ exports[`renders ./components/select/demo/coordinate.vue correctly 1`] = `
Hangzhou -
+ @@ -150,7 +134,8 @@ exports[`renders ./components/select/demo/custom-dropdown-menu.vue correctly 1`]
lucy -
+ `; @@ -161,7 +146,8 @@ exports[`renders ./components/select/demo/field-names.vue correctly 1`] = `
Lucy -
+ `; @@ -190,7 +176,8 @@ exports[`renders ./components/select/demo/label-in-value.vue correctly 1`] = `
Lucy (101) -
+ `; @@ -224,7 +211,8 @@ exports[`renders ./components/select/demo/optgroup.vue correctly 1`] = `
Lucy -
+ @@ -235,7 +223,8 @@ exports[`renders ./components/select/demo/optgroup.vue correctly 1`] = `
Lucy -
+ @@ -433,7 +422,8 @@ exports[`renders ./components/select/demo/search.vue correctly 1`] = `
Select a person -
+ `; @@ -479,7 +469,8 @@ exports[`renders ./components/select/demo/size.vue correctly 1`] = `
a1 -
+ @@ -537,7 +528,8 @@ exports[`renders ./components/select/demo/suffix.vue correctly 1`] = `
Lucy -
+ @@ -548,7 +540,8 @@ exports[`renders ./components/select/demo/suffix.vue correctly 1`] = `
Lucy -
+ diff --git a/components/skeleton/__tests__/__snapshots__/demo.test.js.snap b/components/skeleton/__tests__/__snapshots__/demo.test.js.snap index bf28685ec..acc40ccf2 100644 --- a/components/skeleton/__tests__/__snapshots__/demo.test.js.snap +++ b/components/skeleton/__tests__/__snapshots__/demo.test.js.snap @@ -94,7 +94,6 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = ` - @@ -111,7 +110,6 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = ` - @@ -126,7 +124,6 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
- @@ -141,7 +138,6 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
- @@ -156,7 +152,6 @@ exports[`renders ./components/skeleton/demo/element.vue correctly 1`] = `
- diff --git a/components/spin/__tests__/__snapshots__/demo.test.js.snap b/components/spin/__tests__/__snapshots__/demo.test.js.snap index 1abfbb95d..25ababc09 100644 --- a/components/spin/__tests__/__snapshots__/demo.test.js.snap +++ b/components/spin/__tests__/__snapshots__/demo.test.js.snap @@ -1,13 +1,13 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders ./components/spin/demo/basic.vue correctly 1`] = ` -
+
`; exports[`renders ./components/spin/demo/custom-indicator.vue correctly 1`] = ` -
+
`; @@ -35,7 +35,7 @@ exports[`renders ./components/spin/demo/delay.vue correctly 1`] = ` exports[`renders ./components/spin/demo/inside.vue correctly 1`] = `
-
+
@@ -65,19 +65,19 @@ exports[`renders ./components/spin/demo/nested.vue correctly 1`] = ` exports[`renders ./components/spin/demo/size.vue correctly 1`] = `
-
+
-
+
-
+
@@ -88,7 +88,7 @@ exports[`renders ./components/spin/demo/size.vue correctly 1`] = ` exports[`renders ./components/spin/demo/tip.vue correctly 1`] = `
-
+
Loading...
diff --git a/components/steps/__tests__/__snapshots__/demo.test.js.snap b/components/steps/__tests__/__snapshots__/demo.test.js.snap index fad070f40..9cce313cc 100644 --- a/components/steps/__tests__/__snapshots__/demo.test.js.snap +++ b/components/steps/__tests__/__snapshots__/demo.test.js.snap @@ -2,7 +2,7 @@ exports[`renders ./components/steps/demo/clickable.vue correctly 1`] = `
-
+
@@ -98,7 +98,7 @@ exports[`renders ./components/steps/demo/clickable.vue correctly 1`] = ` exports[`renders ./components/steps/demo/customized-progress-dot.vue correctly 1`] = `
-
+
@@ -160,7 +160,7 @@ exports[`renders ./components/steps/demo/customized-progress-dot.vue correctly 1 `; exports[`renders ./components/steps/demo/error.vue correctly 1`] = ` -
+
@@ -207,7 +207,7 @@ exports[`renders ./components/steps/demo/error.vue correctly 1`] = ` `; exports[`renders ./components/steps/demo/icon.vue correctly 1`] = ` -
+
@@ -269,7 +269,7 @@ exports[`renders ./components/steps/demo/icon.vue correctly 1`] = ` exports[`renders ./components/steps/demo/nav.vue correctly 1`] = `
-
+
@@ -310,7 +310,7 @@ exports[`renders ./components/steps/demo/nav.vue correctly 1`] = `
-
+
@@ -368,7 +368,7 @@ exports[`renders ./components/steps/demo/nav.vue correctly 1`] = `
-
+
@@ -430,7 +430,7 @@ exports[`renders ./components/steps/demo/nav.vue correctly 1`] = ` `; exports[`renders ./components/steps/demo/progress.vue correctly 1`] = ` -
+
@@ -494,7 +494,7 @@ exports[`renders ./components/steps/demo/progress.vue correctly 1`] = ` exports[`renders ./components/steps/demo/progress-dot.vue correctly 1`] = `
-
+
@@ -617,7 +617,7 @@ exports[`renders ./components/steps/demo/progress-dot.vue correctly 1`] = ` `; exports[`renders ./components/steps/demo/simple.vue correctly 1`] = ` -
+
@@ -663,7 +663,7 @@ exports[`renders ./components/steps/demo/simple.vue correctly 1`] = ` `; exports[`renders ./components/steps/demo/small-size.vue correctly 1`] = ` -
+
@@ -711,7 +711,7 @@ exports[`renders ./components/steps/demo/small-size.vue correctly 1`] = ` exports[`renders ./components/steps/demo/step-next.vue correctly 1`] = `
-
+
diff --git a/components/table/__tests__/__snapshots__/demo.test.js.snap b/components/table/__tests__/__snapshots__/demo.test.js.snap index f5d882d7c..c79b2932d 100644 --- a/components/table/__tests__/__snapshots__/demo.test.js.snap +++ b/components/table/__tests__/__snapshots__/demo.test.js.snap @@ -886,7 +886,8 @@ exports[`renders ./components/table/demo/edit-row.vue correctly 1`] = `
10 / page -
+
@@ -1320,7 +1321,7 @@ exports[`renders ./components/table/demo/filter-in-tree.vue correctly 1`] = `
- +
Age
@@ -2255,7 +2256,8 @@ exports[`renders ./components/table/demo/fixed-columns-header.vue correctly 1`]
10 / page -
+
@@ -3085,7 +3087,8 @@ exports[`renders ./components/table/demo/fixed-header.vue correctly 1`] = `
50 / page -
+
@@ -3130,7 +3133,7 @@ exports[`renders ./components/table/demo/grouping-columns.vue correctly 1`] = ` - +
Age
@@ -3590,7 +3593,8 @@ exports[`renders ./components/table/demo/grouping-columns.vue correctly 1`] = `
10 / page -
+
@@ -3614,20 +3618,20 @@ exports[`renders ./components/table/demo/head.vue correctly 1`] = ` - +
Name
- +
Age
- +
Address
@@ -3734,19 +3738,19 @@ exports[`renders ./components/table/demo/multiple-sorter.vue correctly 1`] = ` Name - +
Chinese Score
- +
Math Score
- +
English Score
@@ -4213,20 +4217,20 @@ exports[`renders ./components/table/demo/reset-filter.vue correctly 1`] = ` - +
Name
- +
Age
- +
Address
@@ -5962,15 +5966,9 @@ exports[`renders ./components/table/demo/sticky.vue correctly 1`] = ` - - -
-
- - - - @@ -5991,6 +5989,7 @@ exports[`renders ./components/table/demo/sticky.vue correctly 1`] = `
+ + Fix Right
+
@@ -6013,7 +6012,8 @@ exports[`renders ./components/table/demo/sticky.vue correctly 1`] = `
10 / page -
+
@@ -6622,12 +6622,6 @@ exports[`renders ./components/table/demo/summary.vue correctly 1`] = ` - - -
-
- -
@@ -6643,6 +6637,7 @@ exports[`renders ./components/table/demo/summary.vue correctly 1`] = `
+
diff --git a/components/tabs/__tests__/__snapshots__/demo.test.js.snap b/components/tabs/__tests__/__snapshots__/demo.test.js.snap index 9fe03ccac..f05401a62 100644 --- a/components/tabs/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tabs/__tests__/__snapshots__/demo.test.js.snap @@ -7,15 +7,15 @@ exports[`renders ./components/tabs/demo/basic.vue correctly 1`] = `
- +
- +
- +
@@ -23,7 +23,7 @@ exports[`renders ./components/tabs/demo/basic.vue correctly 1`] = `
- +
@@ -31,9 +31,9 @@ exports[`renders ./components/tabs/demo/basic.vue correctly 1`] = `
-
Content of Tab Pane 1
- - @@ -48,15 +48,15 @@ exports[`renders ./components/tabs/demo/card.vue correctly 1`] = `
- +
- +
- +
@@ -64,7 +64,7 @@ exports[`renders ./components/tabs/demo/card.vue correctly 1`] = `
- +
@@ -72,11 +72,11 @@ exports[`renders ./components/tabs/demo/card.vue correctly 1`] = `
-
Content of Tab Pane 1
-
-