Skip to content

Commit 1c7b7a3

Browse files
committed
test: update tour test
1 parent 28263bb commit 1c7b7a3

File tree

8 files changed

+99
-1957
lines changed

8 files changed

+99
-1957
lines changed

components/tour/__tests__/__snapshots__/demo-extend.test.ts.snap

-478
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`renders ./components/tour/demo/basic.vue correctly 1`] = `
4+
<button class="ant-btn ant-btn-primary" type="button">
5+
<!----><span>Begin Tour</span>
6+
</button>
7+
<div class="ant-divider ant-divider-horizontal" role="separator">
8+
<!---->
9+
</div>
10+
<div class="ant-space ant-space-horizontal ant-space-align-center">
11+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-default" type="button">
12+
<!----><span>Upload</span>
13+
</button></div>
14+
<!---->
15+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-primary" type="button">
16+
<!----><span>Save</span>
17+
</button></div>
18+
<!---->
19+
<div class="ant-space-item"><button class="ant-btn ant-btn-default" type="button">
20+
<!----><span role="img" aria-label="ellipsis" class="anticon anticon-ellipsis"><svg focusable="false" class="" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"></path></svg></span>
21+
</button></div>
22+
<!---->
23+
</div>
24+
`;
25+
26+
exports[`renders ./components/tour/demo/indicator.vue correctly 1`] = `
27+
<button class="ant-btn ant-btn-primary" type="button">
28+
<!----><span>Begin Tour</span>
29+
</button>
30+
<div class="ant-divider ant-divider-horizontal" role="separator">
31+
<!---->
32+
</div>
33+
<div class="ant-space ant-space-horizontal ant-space-align-center">
34+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-default" type="button">
35+
<!----><span>Upload</span>
36+
</button></div>
37+
<!---->
38+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-primary" type="button">
39+
<!----><span>Save</span>
40+
</button></div>
41+
<!---->
42+
<div class="ant-space-item"><button class="ant-btn ant-btn-default" type="button">
43+
<!----><span role="img" aria-label="ellipsis" class="anticon anticon-ellipsis"><svg focusable="false" class="" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"></path></svg></span>
44+
</button></div>
45+
<!---->
46+
</div>
47+
`;
48+
49+
exports[`renders ./components/tour/demo/mask.vue correctly 1`] = `
50+
<button class="ant-btn ant-btn-primary" type="button">
51+
<!----><span>Begin Tour</span>
52+
</button>
53+
<div class="ant-divider ant-divider-horizontal" role="separator">
54+
<!---->
55+
</div>
56+
<div class="ant-space ant-space-horizontal ant-space-align-center">
57+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-default" type="button">
58+
<!----><span>Upload</span>
59+
</button></div>
60+
<!---->
61+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-primary" type="button">
62+
<!----><span>Save</span>
63+
</button></div>
64+
<!---->
65+
<div class="ant-space-item"><button class="ant-btn ant-btn-default" type="button">
66+
<!----><span role="img" aria-label="ellipsis" class="anticon anticon-ellipsis"><svg focusable="false" class="" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"></path></svg></span>
67+
</button></div>
68+
<!---->
69+
</div>
70+
`;
71+
72+
exports[`renders ./components/tour/demo/non-modal.vue correctly 1`] = `
73+
<button class="ant-btn ant-btn-primary" type="button">
74+
<!----><span>Begin Tour</span>
75+
</button>
76+
<div class="ant-divider ant-divider-horizontal" role="separator">
77+
<!---->
78+
</div>
79+
<div class="ant-space ant-space-horizontal ant-space-align-center">
80+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-default" type="button">
81+
<!----><span>Upload</span>
82+
</button></div>
83+
<!---->
84+
<div class="ant-space-item" style="margin-right: 8px;"><button class="ant-btn ant-btn-primary" type="button">
85+
<!----><span>Save</span>
86+
</button></div>
87+
<!---->
88+
<div class="ant-space-item"><button class="ant-btn ant-btn-default" type="button">
89+
<!----><span role="img" aria-label="ellipsis" class="anticon anticon-ellipsis"><svg focusable="false" class="" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"></path></svg></span>
90+
</button></div>
91+
<!---->
92+
</div>
93+
`;
94+
95+
exports[`renders ./components/tour/demo/placement.vue correctly 1`] = `
96+
<button class="ant-btn ant-btn-primary" type="button">
97+
<!----><span>Begin Tour</span>
98+
</button>
99+
`;

0 commit comments

Comments
 (0)