From 3b1d48b4b4e16b46438cc2e079c69e3b8086f61a Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Sun, 22 May 2022 21:45:48 +0800
Subject: [PATCH] test: update test
---
.../__tests__/__snapshots__/demo.test.js.snap | 745 +++++++++++-------
.../__snapshots__/index.test.js.snap | 4 +-
.../__tests__/__snapshots__/demo.test.js.snap | 32 +-
.../Table.rowSelection.test.js.snap | 98 ++-
.../__snapshots__/Table.sorter.test.js.snap | 2 +-
.../__tests__/__snapshots__/demo.test.js.snap | 157 +++-
.../__snapshots__/empty.test.js.snap | 2 +-
components/table/demo/index.vue | 3 +
.../__tests__/__snapshots__/demo.test.js.snap | 147 +++-
.../__snapshots__/index.test.js.snap | 3 +-
.../__tests__/__snapshots__/demo.test.js.snap | 133 +++-
.../__snapshots__/search.test.js.snap | 4 +-
.../__tests__/__snapshots__/demo.test.js.snap | 71 +-
13 files changed, 983 insertions(+), 418 deletions(-)
diff --git a/components/page-header/__tests__/__snapshots__/demo.test.js.snap b/components/page-header/__tests__/__snapshots__/demo.test.js.snap
index 7ef6e476f..0ef86f0f9 100644
--- a/components/page-header/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/page-header/__tests__/__snapshots__/demo.test.js.snap
@@ -65,47 +65,74 @@ exports[`renders ./components/page-header/demo/actions.vue correctly 1`] = `
-
-
-
+
+ Name
+
+
+
+ |
+
Age
@@ -2255,7 +2376,8 @@ exports[`renders ./components/table/demo/fixed-columns-header.vue correctly 1`]
10 / page
-
+
@@ -3085,7 +3207,8 @@ exports[`renders ./components/table/demo/fixed-header.vue correctly 1`] = `
50 / page
-
+
@@ -3130,7 +3253,7 @@ exports[`renders ./components/table/demo/grouping-columns.vue correctly 1`] = `
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ |
Age
@@ -3590,7 +3713,8 @@ exports[`renders ./components/table/demo/grouping-columns.vue correctly 1`] = `
10 / page
-
+
@@ -3614,20 +3738,20 @@ exports[`renders ./components/table/demo/head.vue correctly 1`] = `
+ |
|
- Name
+ |
|
- Age
+ |
|
- Address
@@ -3734,19 +3858,19 @@ exports[`renders ./components/table/demo/multiple-sorter.vue correctly 1`] = `
Name
+ |
|
- Chinese Score
+ |
|
- Math Score
+ |
| English Score
@@ -4213,20 +4337,20 @@ exports[`renders ./components/table/demo/reset-filter.vue correctly 1`] = `
+ |
|
- Name
+ |
|
- Age
+ |
| Address
@@ -6013,7 +6137,8 @@ exports[`renders ./components/table/demo/sticky.vue correctly 1`] = `
10 / page
-
+
-
+
diff --git a/components/table/demo/index.vue b/components/table/demo/index.vue
index 8c7efd643..2564b5527 100644
--- a/components/table/demo/index.vue
+++ b/components/table/demo/index.vue
@@ -19,6 +19,7 @@
-
+
+
@@ -13,7 +14,8 @@ exports[`renders ./components/time-picker/demo/12hours.vue correctly 1`] = `
-
+
+
@@ -22,7 +24,8 @@ exports[`renders ./components/time-picker/demo/12hours.vue correctly 1`] = `
-
+
+
@@ -36,7 +39,8 @@ exports[`renders ./components/time-picker/demo/addon.vue correctly 1`] = `
-
+
+
@@ -45,7 +49,8 @@ exports[`renders ./components/time-picker/demo/addon.vue correctly 1`] = `
-
+
+
@@ -59,14 +64,18 @@ exports[`renders ./components/time-picker/demo/basic.vue correctly 1`] = `
-
+
+
+
-
+
+
+
-
+
@@ -101,7 +112,8 @@ exports[`renders ./components/time-picker/demo/bordered.vue correctly 1`] = `
exports[`renders ./components/time-picker/demo/disabled.vue correctly 1`] = `
+
@@ -90,7 +100,8 @@ exports[`renders ./components/time-picker/demo/bordered.vue correctly 1`] = `
-
+
+
-
+
@@ -155,7 +211,8 @@ exports[`renders ./components/tree-select/demo/tree-line.vue correctly 1`] = `
+
@@ -110,26 +122,60 @@ exports[`renders ./components/time-picker/demo/disabled.vue correctly 1`] = `
exports[`renders ./components/time-picker/demo/hide-column.vue correctly 1`] = `
-
`;
exports[`renders ./components/time-picker/demo/interval-options.vue correctly 1`] = `
+
+
+
-
+
`;
+exports[`renders ./components/time-picker/demo/placement.vue correctly 1`] = `
+
+
+
+ +
+
+`;
+
exports[`renders ./components/time-picker/demo/range-picker.vue correctly 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
+
+
+
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -163,7 +264,9 @@ exports[`renders ./components/time-picker/demo/size.vue correctly 1`] = `
exports[`renders ./components/time-picker/demo/suffix.vue correctly 1`] = `
+
+
+
+
+
+
-
`;
@@ -176,7 +279,8 @@ exports[`renders ./components/time-picker/demo/value.vue correctly 1`] = `
+
+
+
- Please select
-
+
+
@@ -189,7 +293,8 @@ exports[`renders ./components/time-picker/demo/value.vue correctly 1`] = `
-
+
+
@@ -202,7 +307,9 @@ exports[`renders ./components/time-picker/demo/value.vue correctly 1`] = `
-
+
+
+
-
+`;
+
+exports[`renders ./components/tree-select/demo/status.vue correctly 1`] = `
+
+
+
diff --git a/components/transfer/__tests__/__snapshots__/demo.test.js.snap b/components/transfer/__tests__/__snapshots__/demo.test.js.snap
index 36b401be3..cc26180df 100644
--- a/components/transfer/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/transfer/__tests__/__snapshots__/demo.test.js.snap
@@ -9,7 +9,7 @@ exports[`renders ./components/transfer/demo/advanced.vue correctly 1`] = `
20 items
-
`;
+exports[`renders ./components/tree-select/demo/placement.vue correctly 1`] = `
+
+
+
-
`;
@@ -91,13 +94,64 @@ exports[`renders ./components/tree-select/demo/multiple.vue correctly 1`] = `
+
没数据
@@ -536,7 +536,7 @@ exports[`renders ./components/transfer/demo/search.vue correctly 1`] = `
20 items
-
+
-
`;
@@ -68,7 +70,8 @@ exports[`renders ./components/tree-select/demo/highlight.vue correctly 1`] = `
+
@@ -637,6 +637,131 @@ exports[`renders ./components/transfer/demo/search.vue correctly 1`] = `
`;
+exports[`renders ./components/transfer/demo/status.vue correctly 1`] = `
+
+
+`;
+
exports[`renders ./components/transfer/demo/table-transfer.vue correctly 1`] = `
+
+
+
+
+
+
+
+ 0 item
+
+
+
+
+
+
+
+
+
+
+ No Data + +
+
+
+ 0 item
+
+
+
+
+
+
+
+
+
+
+ No Data + +
+
+
+
+
+
+
+
+ 0 item
+
+
+
+
+
+
+
+
+
+
+
+
+ No Data + +
+
+
+ 0 item
+
+
+
+
+
+
+
+
+
+
+
+
+ No Data + +
diff --git a/components/transfer/__tests__/__snapshots__/search.test.js.snap b/components/transfer/__tests__/__snapshots__/search.test.js.snap
index c863a8915..5e4f09c89 100644
--- a/components/transfer/__tests__/__snapshots__/search.test.js.snap
+++ b/components/transfer/__tests__/__snapshots__/search.test.js.snap
@@ -1,11 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Search should show cross icon when input value exists 1`] = `
-
+
`;
exports[`Search should show cross icon when input value exists 2`] = `
-
+
`;
diff --git a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap
index db39f8555..ada0c8e0c 100644
--- a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap
@@ -6,7 +6,8 @@ exports[`renders ./components/tree-select/demo/async.vue correctly 1`] = `
Please select
-
+
Please select
-
+
Please select
-
+ + +
+
+
+
+`;
+
exports[`renders ./components/tree-select/demo/replaceFields.vue correctly 1`] = `
+ Please select
+
+
+
Please select
-
+
+
`;
@@ -110,7 +164,8 @@ exports[`renders ./components/tree-select/demo/suffix.vue correctly 1`] = `
+
+
+
+
+
+
+
+ Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Warning multiple
+
+
+
+
+
Please select
-
+
Please select
-
+ |