Skip to content

Commit 602c879

Browse files
committed
test: update sanp
1 parent 2b3b486 commit 602c879

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

components/cascader/__tests__/__snapshots__/demo.test.js.snap

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ exports[`renders ./antdv-demo/docs/cascader/demo/change-on-select.md correctly 1
1313
`;
1414
1515
exports[`renders ./antdv-demo/docs/cascader/demo/custom-render.md correctly 1`] = `
16-
<span tabindex="0" class="ant-cascader-picker" style="width: 100%;"><input type="text" readonly="true" class="ant-input ant-cascader-input "><span class="ant-cascader-picker-label"><span><span>
17-
Zhejiang /
18-
</span></span><span><span>
19-
Hangzhou /
20-
</span></span><span><span>
16+
<span tabindex="0" class="ant-cascader-picker" style="width: 100%;"><input type="text" readonly="true" class="ant-input ant-cascader-input "><span class="ant-cascader-picker-label"><span><span> Zhejiang / </span></span><span><span> Hangzhou / </span></span><span><span>
2117
West Lake (<a>752100</a>)
2218
</span></span></span><i aria-label="icon: close-circle" tabindex="-1" class="anticon anticon-close-circle ant-cascader-picker-clear"><svg viewBox="64 64 896 896" data-icon="close-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
2319
<path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"></path>

components/drawer/__tests__/__snapshots__/demo.test.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ exports[`renders ./antdv-demo/docs/drawer/demo/render-in-current.md correctly 1`
3232
<div style="height: 200px; overflow: hidden; position: relative; border: 1px solid #ebedf0; border-radius: 2px; padding: 48px; text-align: center; background: rgb(250, 250, 250);">
3333
Render in this
3434
<div style="margin-top: 16px;"><button type="button" class="ant-btn ant-btn-primary"><span>Open</span></button></div>
35-
<div tabindex="-1" class="" style="position: absolute;">
36-
<div tabindex="-1" class="ant-drawer ant-drawer-right">
35+
<div tabindex="-1" class="">
36+
<div tabindex="-1" class="ant-drawer ant-drawer-right" style="position: absolute;">
3737
<div class="ant-drawer-mask"></div>
3838
<div class="ant-drawer-content-wrapper" style="transform: translateX(100%); width: 256px;">
3939
<div class="ant-drawer-content">

components/dropdown/__tests__/__snapshots__/demo.test.js.snap

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`renders ./antdv-demo/docs/dropdown/demo/basic.md correctly 1`] = `
4-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
4+
<a class="ant-dropdown-link ant-dropdown-trigger">
5+
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
56
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
67
</svg></i></a>
78
`;
@@ -29,19 +30,22 @@ exports[`renders ./antdv-demo/docs/dropdown/demo/dropdown-button.md correctly 1`
2930
`;
3031

3132
exports[`renders ./antdv-demo/docs/dropdown/demo/event.md correctly 1`] = `
32-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me, Click menu item <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
33+
<a class="ant-dropdown-link ant-dropdown-trigger">
34+
Hover me, Click menu item <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
3335
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
3436
</svg></i></a>
3537
`;
3638

3739
exports[`renders ./antdv-demo/docs/dropdown/demo/item.md correctly 1`] = `
38-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
40+
<a class="ant-dropdown-link ant-dropdown-trigger">
41+
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
3942
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
4043
</svg></i></a>
4144
`;
4245

4346
exports[`renders ./antdv-demo/docs/dropdown/demo/overlay-visible.md correctly 1`] = `
44-
<a class="ant-dropdown-link ant-dropdown-trigger"> Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
47+
<a class="ant-dropdown-link ant-dropdown-trigger">
48+
Hover me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
4549
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
4650
</svg></i></a>
4751
`;
@@ -57,13 +61,15 @@ exports[`renders ./antdv-demo/docs/dropdown/demo/placement.md correctly 1`] = `
5761
`;
5862
5963
exports[`renders ./antdv-demo/docs/dropdown/demo/sub-menu.md correctly 1`] = `
60-
<a class="ant-dropdown-link ant-dropdown-trigger"> Cascading menu <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
64+
<a class="ant-dropdown-link ant-dropdown-trigger">
65+
Cascading menu <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
6166
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
6267
</svg></i></a>
6368
`;
6469
6570
exports[`renders ./antdv-demo/docs/dropdown/demo/trigger.md correctly 1`] = `
66-
<a class="ant-dropdown-link ant-dropdown-trigger"> Click me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
71+
<a class="ant-dropdown-link ant-dropdown-trigger">
72+
Click me <i aria-label="icon: down" class="anticon anticon-down"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
6773
<path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path>
6874
</svg></i></a>
6975
`;

components/result/__tests__/__snapshots__/demo.test.js.snap

+4-2
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,13 @@ exports[`renders ./antdv-demo/docs/result/demo/error.md correctly 1`] = `
246246
<p><i aria-label="icon: close-circle" class="anticon anticon-close-circle" style="color: red;"><svg viewBox="64 64 896 896" data-icon="close-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
247247
<path d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"></path>
248248
<path d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
249-
</svg></i> Your account has been frozen <a>Thaw immediately &gt;</a></p>
249+
</svg></i> Your account has been frozen
250+
<a>Thaw immediately &gt;</a></p>
250251
<p><i aria-label="icon: close-circle" class="anticon anticon-close-circle" style="color: red;"><svg viewBox="64 64 896 896" data-icon="close-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="">
251252
<path d="M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"></path>
252253
<path d="M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path>
253-
</svg></i> Your account is not yet eligible to apply <a>Apply Unlock &gt;</a></p>
254+
</svg></i> Your account is not yet eligible to
255+
apply <a>Apply Unlock &gt;</a></p>
254256
</div>
255257
</div>
256258
<div class="ant-result-extra"><button type="button" class="ant-btn ant-btn-primary"><span>Go Console</span></button> <button type="button" class="ant-btn"><span>Buy Again</span></button></div>

0 commit comments

Comments
 (0)