Skip to content

Commit b8319bd

Browse files
committed
test: update snap
1 parent a482366 commit b8319bd

File tree

72 files changed

+9339
-13002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+9339
-13002
lines changed

.jest.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const transformIgnorePatterns = [
88
'node_modules/(?!@ant-design/icons-vue|@ant-design/icons-svg|lodash-es)/',
99
];
1010
const testPathIgnorePatterns = ['/node_modules/', 'node'];
11-
if (process.env.WORKFLOW === 'true') {
12-
testPathIgnorePatterns.push('demo\\.test*');
13-
}
11+
1412
module.exports = {
1513
testURL: 'http://localhost/',
1614
setupFiles: ['./tests/setup.js'],

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

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

3-
exports[`renders ./antdv-demo/docs/affix/demo/basic.md correctly 1`] = `
3+
exports[`renders ./components/affix/demo/basic.vue correctly 1`] = `
44
<div style="width: 0px; height: 0px;">
55
<div class="ant-affix" style="position: fixed; top: 10px; width: 0px; height: 0px;"><button class="ant-btn ant-btn-primary" type="button">
66
<!----><span>Affix top</span>
@@ -13,15 +13,15 @@ exports[`renders ./antdv-demo/docs/affix/demo/basic.md correctly 1`] = `
1313
</div>
1414
`;
1515
16-
exports[`renders ./antdv-demo/docs/affix/demo/on-change.md correctly 1`] = `
16+
exports[`renders ./components/affix/demo/on-change.vue correctly 1`] = `
1717
<div style="width: 0px; height: 0px;">
1818
<div class="ant-affix" style="position: fixed; top: 120px; width: 0px; height: 0px;"><button class="ant-btn" type="button">
1919
<!----><span>120px to affix top</span>
2020
</button></div>
2121
</div>
2222
`;
2323
24-
exports[`renders ./antdv-demo/docs/affix/demo/target.md correctly 1`] = `
24+
exports[`renders ./components/affix/demo/target.vue correctly 1`] = `
2525
<div id="components-affix-demo-target" class="scrollable-container">
2626
<div class="background">
2727
<div>

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

+224-43
Large diffs are not rendered by default.

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

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

3-
exports[`renders ./antdv-demo/docs/anchor/demo/basic.md correctly 1`] = `
3+
exports[`renders ./components/anchor/demo/basic.vue correctly 1`] = `
44
<div>
55
<div class="">
66
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
@@ -29,7 +29,7 @@ exports[`renders ./antdv-demo/docs/anchor/demo/basic.md correctly 1`] = `
2929
</div>
3030
`;
3131

32-
exports[`renders ./antdv-demo/docs/anchor/demo/customizeHighlight.md correctly 1`] = `
32+
exports[`renders ./components/anchor/demo/customizeHighlight.vue correctly 1`] = `
3333
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
3434
<div class="ant-anchor fixed">
3535
<div class="ant-anchor-ink"><span class="ant-anchor-ink-ball visible" style="top: -4.5px;"></span></div>
@@ -51,7 +51,7 @@ exports[`renders ./antdv-demo/docs/anchor/demo/customizeHighlight.md correctly 1
5151
</div>
5252
`;
5353

54-
exports[`renders ./antdv-demo/docs/anchor/demo/onChange.md correctly 1`] = `
54+
exports[`renders ./components/anchor/demo/onChange.vue correctly 1`] = `
5555
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
5656
<div class="ant-anchor fixed">
5757
<div class="ant-anchor-ink"><span class="ant-anchor-ink-ball"></span></div>
@@ -73,7 +73,7 @@ exports[`renders ./antdv-demo/docs/anchor/demo/onChange.md correctly 1`] = `
7373
</div>
7474
`;
7575

76-
exports[`renders ./antdv-demo/docs/anchor/demo/onClick.md correctly 1`] = `
76+
exports[`renders ./components/anchor/demo/onClick.vue correctly 1`] = `
7777
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
7878
<div class="ant-anchor fixed">
7979
<div class="ant-anchor-ink"><span class="ant-anchor-ink-ball"></span></div>
@@ -95,7 +95,7 @@ exports[`renders ./antdv-demo/docs/anchor/demo/onClick.md correctly 1`] = `
9595
</div>
9696
`;
9797

98-
exports[`renders ./antdv-demo/docs/anchor/demo/static.md correctly 1`] = `
98+
exports[`renders ./components/anchor/demo/static.vue correctly 1`] = `
9999
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
100100
<div class="ant-anchor fixed">
101101
<div class="ant-anchor-ink"><span class="ant-anchor-ink-ball"></span></div>
@@ -117,7 +117,7 @@ exports[`renders ./antdv-demo/docs/anchor/demo/static.md correctly 1`] = `
117117
</div>
118118
`;
119119

120-
exports[`renders ./antdv-demo/docs/anchor/demo/targetOffset.md correctly 1`] = `
120+
exports[`renders ./components/anchor/demo/targetOffset.vue correctly 1`] = `
121121
<div>
122122
<div class="">
123123
<div class="ant-anchor-wrapper" style="max-height: 100vh;">

components/auto-complete/__tests__/__snapshots__/demo.test.js.snap

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

3-
exports[`renders ./antdv-demo/docs/auto-complete/demo/basic.md correctly 1`] = `
4-
<div class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input" style="width: 200px;">
3+
exports[`renders ./components/auto-complete/demo/basic.vue correctly 1`] = `
4+
<div style="width: 200px;" class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search">
55
<!---->
66
<!---->
77
<div class="ant-select-selector"><span class="ant-select-selection-search"><input type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-input ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0"></span>
@@ -12,22 +12,22 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/basic.md correctly 1`] = `
1212
</div>
1313
`;
1414
15-
exports[`renders ./antdv-demo/docs/auto-complete/demo/certain-category.md correctly 1`] = `
15+
exports[`renders ./components/auto-complete/demo/certain-category.vue correctly 1`] = `
1616
<div class="certain-category-search-wrapper" style="width: 250px;">
17-
<div class="ant-select ant-select-lg certain-category-search ant-select-lg ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input" style="width: 100%;">
17+
<div class="ant-select ant-select-lg certain-category-search ant-select-lg ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search" style="width: 100%;">
1818
<!---->
1919
<!---->
20-
<div class="ant-select-selector"><span class="ant-select-selection-search"><span class="ant-select-selection-search-input ant-input-affix-wrapper"><!----><input type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0"><span class="ant-input-suffix"><!----><span role="img" aria-label="search" class="anticon anticon-search certain-category-icon"><svg class="" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896" focusable="false"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg></span></span></span></span>
21-
<!----><span class="ant-select-selection-placeholder">input here</span>
20+
<div class="ant-select-selector"><span class="ant-select-selection-search"><span class="ant-select-selection-search-input ant-input-affix-wrapper"><!----><input placeholder="input here" type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0"><span class="ant-input-suffix"><!----><span role="img" aria-label="search" class="anticon anticon-search certain-category-icon"><svg focusable="false" class="" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg></span></span></span></span>
21+
<!----><span class="ant-select-selection-placeholder"><!----></span>
2222
</div>
2323
<!---->
2424
<!---->
2525
</div>
2626
</div>
2727
`;
2828

29-
exports[`renders ./antdv-demo/docs/auto-complete/demo/custom.md correctly 1`] = `
30-
<div class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input" style="width: 200px;">
29+
exports[`renders ./components/auto-complete/demo/custom.vue correctly 1`] = `
30+
<div style="width: 200px;" class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search">
3131
<!---->
3232
<!---->
3333
<div class="ant-select-selector"><span class="ant-select-selection-search"><textarea placeholder="input here" class="ant-input ant-select-selection-search-input" style="height: 50px;" id="rc_select_TEST_OR_SSR" autocomplete="off" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0"></textarea></span>
@@ -38,8 +38,8 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/custom.md correctly 1`] =
3838
</div>
3939
`;
4040

41-
exports[`renders ./antdv-demo/docs/auto-complete/demo/non-case-sensitive.md correctly 1`] = `
42-
<div class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input" style="width: 200px;">
41+
exports[`renders ./components/auto-complete/demo/non-case-sensitive.vue correctly 1`] = `
42+
<div style="width: 200px;" class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search">
4343
<!---->
4444
<!---->
4545
<div class="ant-select-selector"><span class="ant-select-selection-search"><input type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-input ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0"></span>
@@ -50,8 +50,8 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/non-case-sensitive.md corr
5050
</div>
5151
`;
5252
53-
exports[`renders ./antdv-demo/docs/auto-complete/demo/options.md correctly 1`] = `
54-
<div class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input" style="width: 200px;">
53+
exports[`renders ./components/auto-complete/demo/options.vue correctly 1`] = `
54+
<div style="width: 200px;" class="ant-select ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search">
5555
<!---->
5656
<!---->
5757
<div class="ant-select-selector"><span class="ant-select-selection-search"><input type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-input ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0"></span>
@@ -62,13 +62,13 @@ exports[`renders ./antdv-demo/docs/auto-complete/demo/options.md correctly 1`] =
6262
</div>
6363
`;
6464
65-
exports[`renders ./antdv-demo/docs/auto-complete/demo/uncertain-category.md correctly 1`] = `
65+
exports[`renders ./components/auto-complete/demo/uncertain-category.vue correctly 1`] = `
6666
<div class="global-search-wrapper" style="width: 300px;">
67-
<div class="ant-select ant-select-lg global-search ant-select-lg ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input" style="width: 100%;">
67+
<div class="ant-select ant-select-lg global-search ant-select-lg ant-select-show-search ant-select-auto-complete ant-select-single ant-select-customize-input ant-select-show-search" style="width: 100%;">
6868
<!---->
6969
<!---->
70-
<div class="ant-select-selector"><span class="ant-select-selection-search"><input type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" class="ant-input ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0"></span>
71-
<!----><span class="ant-select-selection-placeholder">input here</span>
70+
<div class="ant-select-selector"><span class="ant-select-selection-search"><span class="ant-input-search ant-select-selection-search-input ant-input-search-enter-button ant-input-search-large ant-input-group-wrapper ant-input-group-wrapper-lg"><span class="ant-input-wrapper ant-input-group"><!----><input placeholder="input here" type="search" id="rc_select_TEST_OR_SSR" autocomplete="off" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-activedescendant="rc_select_TEST_OR_SSR_list_0" class="ant-input ant-input-lg"><span class="ant-input-group-addon"><button class="ant-btn ant-btn-primary ant-btn-lg ant-input-search-button" type="button"><!----><span role="img" aria-label="search" class="anticon anticon-search"><svg focusable="false" class="" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true" viewBox="64 64 896 896"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg></span></button></span></span></span></span>
71+
<!----><span class="ant-select-selection-placeholder"><!----></span>
7272
</div>
7373
<!---->
7474
<!---->

0 commit comments

Comments
 (0)