From 76ed3d1059907285fb58e0958352ad598741ee36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 15 Dec 2022 15:04:01 +0800 Subject: [PATCH] test: update snapshot --- .../__snapshots__/demo-extend.test.ts.snap | 446 ++++++++-------- .../__tests__/__snapshots__/demo.test.ts.snap | 446 ++++++++-------- .../__snapshots__/index.test.tsx.snap | 478 ++++++++++++++++-- 3 files changed, 902 insertions(+), 468 deletions(-) diff --git a/components/tour/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/tour/__tests__/__snapshots__/demo-extend.test.ts.snap index 21f018e0fae2..6e4007551b55 100644 --- a/components/tour/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/tour/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -178,75 +178,83 @@ exports[`renders ./components/tour/demo/render-panel.tsx extend context correctl class="ant-tour-inner" role="tooltip" > - - - -
-
- Hello World! -
-
-
- Hello World?! -
@@ -265,94 +273,102 @@ exports[`renders ./components/tour/demo/render-panel.tsx extend context correctl class="ant-tour-inner" role="tooltip" > - - -
- tour.png -
-
- Hello World! -
-
-
- Hello World?! -
- @@ -371,80 +387,88 @@ exports[`renders ./components/tour/demo/render-panel.tsx extend context correctl class="ant-tour-inner" role="tooltip" > - - -
- Hello World! -
-
-
- Hello World?! -
- diff --git a/components/tour/__tests__/__snapshots__/demo.test.ts.snap b/components/tour/__tests__/__snapshots__/demo.test.ts.snap index 41e26a7a2e4e..4b510029920d 100644 --- a/components/tour/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/tour/__tests__/__snapshots__/demo.test.ts.snap @@ -178,75 +178,83 @@ exports[`renders ./components/tour/demo/render-panel.tsx correctly 1`] = ` class="ant-tour-inner" role="tooltip" > - - - -
-
- Hello World! -
-
-
- Hello World?! -
@@ -265,94 +273,102 @@ exports[`renders ./components/tour/demo/render-panel.tsx correctly 1`] = ` class="ant-tour-inner" role="tooltip" > - - -
- tour.png -
-
- Hello World! -
-
-
- Hello World?! -
- @@ -371,80 +387,88 @@ exports[`renders ./components/tour/demo/render-panel.tsx correctly 1`] = ` class="ant-tour-inner" role="tooltip" > - - -
- Hello World! -
-
-
- Hello World?! -
- diff --git a/components/tour/__tests__/__snapshots__/index.test.tsx.snap b/components/tour/__tests__/__snapshots__/index.test.tsx.snap index cefbba0803a4..8cd203e9c38e 100644 --- a/components/tour/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/tour/__tests__/__snapshots__/index.test.tsx.snap @@ -1,51 +1,419 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Tour Primary 1`] = ` - + +
+
+
+
+ +
+
+
+
+
+ + + +
+
+ primary title +
+
+
+ primary description. +
+ +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ `; exports[`Tour basic 1`] = ` -
- - - -
+ +
+
+
+
+
+
+
+ + + +
+
+
+
+ `; exports[`Tour button props onClick 1`] = ` -
+ +
+
+
+ + finishButton + + +
+
+
+ `; exports[`Tour rtl render component should be rendered correctly in RTL direction 1`] = `null`; exports[`Tour single 1`] = ` - + +
+ +
+
+
+
+
+ + + +
+
+ cover title +
+
+
+ cover description. +
+ +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + +
+
+
+ `; exports[`Tour step support Primary 1`] = ` @@ -243,19 +611,37 @@ exports[`Tour step support Primary 1`] = ` `; exports[`Tour steps is empty 1`] = ` - + +
+
+ +
+ `; exports[`Tour steps props stepRender 1`] = ` - + +
+
+ +
+
+
+ `;