Skip to content

Commit 3b1cf27

Browse files
committed
test: update snapshots
1 parent a8ca321 commit 3b1cf27

File tree

14 files changed

+264
-264
lines changed

14 files changed

+264
-264
lines changed

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

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

33
exports[`renders ./components/auto-complete/demo/basic.md correctly 1`] = `
4-
<div class="ant-select ant-select-combobox ant-select-enabled ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
4+
<div class="ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
55
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" class="ant-select-selection ant-select-selection--single">
66
<div class="ant-select-selection__rendered">
77
<div unselectable="unselectable" class="ant-select-selection__placeholder" style="display: block;">input here</div>
@@ -17,7 +17,7 @@ exports[`renders ./components/auto-complete/demo/basic.md correctly 1`] = `
1717
1818
exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1`] = `
1919
<div class="certain-category-search-wrapper" style="width: 250px;">
20-
<div class="certain-category-search ant-select-lg ant-select ant-select-combobox ant-select-enabled ant-select-lg ant-select ant-select-combobox ant-select-enabled ant-select-lg ant-select-lg ant-select-show-search ant-select-auto-complete" style="width: 100%;">
20+
<div class="certain-category-search ant-select-lg ant-select ant-select-combobox ant-select-enabled ant-select-lg ant-select-lg ant-select-show-search ant-select-auto-complete" style="width: 100%;">
2121
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" class="ant-select-selection ant-select-selection--single">
2222
<div class="ant-select-selection__rendered">
2323
<div unselectable="unselectable" class="ant-select-selection__placeholder" style="display: block;">input here</div>
@@ -32,7 +32,7 @@ exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1
3232
`;
3333
3434
exports[`renders ./components/auto-complete/demo/custom.md correctly 1`] = `
35-
<div class="ant-select ant-select-combobox ant-select-enabled ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
35+
<div class="ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
3636
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" class="ant-select-selection ant-select-selection--single">
3737
<div class="ant-select-selection__rendered">
3838
<ul>
@@ -46,7 +46,7 @@ exports[`renders ./components/auto-complete/demo/custom.md correctly 1`] = `
4646
`;
4747
4848
exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly 1`] = `
49-
<div class="ant-select ant-select-combobox ant-select-enabled ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
49+
<div class="ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
5050
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" class="ant-select-selection ant-select-selection--single">
5151
<div class="ant-select-selection__rendered">
5252
<div unselectable="unselectable" class="ant-select-selection__placeholder" style="display: block;">input here</div>
@@ -61,7 +61,7 @@ exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly
6161
`;
6262
6363
exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
64-
<div class="ant-select ant-select-combobox ant-select-enabled ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
64+
<div class="ant-select ant-select-combobox ant-select-enabled ant-select-show-search ant-select-auto-complete" style="width: 200px;">
6565
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" class="ant-select-selection ant-select-selection--single">
6666
<div class="ant-select-selection__rendered">
6767
<div unselectable="unselectable" class="ant-select-selection__placeholder" style="display: block;">input here</div>
@@ -77,7 +77,7 @@ exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
7777
7878
exports[`renders ./components/auto-complete/demo/uncertain-category.md correctly 1`] = `
7979
<div class="global-search-wrapper" style="width: 300px;">
80-
<div class="global-search ant-select-lg ant-select ant-select-combobox ant-select-enabled ant-select-lg ant-select ant-select-combobox ant-select-enabled ant-select-lg ant-select-lg ant-select-show-search ant-select-auto-complete" style="width: 100%;">
80+
<div class="global-search ant-select-lg ant-select ant-select-combobox ant-select-enabled ant-select-lg ant-select-lg ant-select-show-search ant-select-auto-complete" style="width: 100%;">
8181
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" class="ant-select-selection ant-select-selection--single">
8282
<div class="ant-select-selection__rendered">
8383
<div unselectable="unselectable" class="ant-select-selection__placeholder" style="display: block;">input here</div>

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

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
44
<div class=" ant-fullcalendar-fullscreen">
55
<div class="ant-fullcalendar-header">
6-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-year-select">
6+
<div class="ant-select ant-select-enabled ant-fullcalendar-year-select">
77
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
88
<div class="ant-select-selection__rendered">
99
<div title="2016" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">2016</div>
1010
</div><span unselectable="unselectable" class="ant-select-arrow"><b></b></span></div>
1111
</div>
12-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-month-select">
12+
<div class="ant-select ant-select-enabled ant-fullcalendar-month-select">
1313
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
1414
<div class="ant-select-selection__rendered">
1515
<div title="Nov" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">Nov</div>
@@ -310,13 +310,13 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
310310
<div style="width: 300px; border: 1px solid #d9d9d9; border-radius: 4px;">
311311
<div class="">
312312
<div class="ant-fullcalendar-header">
313-
<div class="ant-select-sm ant-select ant-select-enabled ant-select-sm ant-select ant-select-enabled ant-select-sm ant-fullcalendar-year-select">
313+
<div class="ant-select-sm ant-select ant-select-enabled ant-select-sm ant-fullcalendar-year-select">
314314
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
315315
<div class="ant-select-selection__rendered">
316316
<div title="2016" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">2016</div>
317317
</div><span unselectable="unselectable" class="ant-select-arrow"><b></b></span></div>
318318
</div>
319-
<div class="ant-select-sm ant-select ant-select-enabled ant-select-sm ant-select ant-select-enabled ant-select-sm ant-fullcalendar-month-select">
319+
<div class="ant-select-sm ant-select ant-select-enabled ant-select-sm ant-fullcalendar-month-select">
320320
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
321321
<div class="ant-select-selection__rendered">
322322
<div title="Nov" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">Nov</div>
@@ -617,13 +617,13 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
617617
exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
618618
<div class=" ant-fullcalendar-fullscreen">
619619
<div class="ant-fullcalendar-header">
620-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-year-select">
620+
<div class="ant-select ant-select-enabled ant-fullcalendar-year-select">
621621
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
622622
<div class="ant-select-selection__rendered">
623623
<div title="2016" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">2016</div>
624624
</div><span unselectable="unselectable" class="ant-select-arrow"><b></b></span></div>
625625
</div>
626-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-month-select">
626+
<div class="ant-select ant-select-enabled ant-fullcalendar-month-select">
627627
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
628628
<div class="ant-select-selection__rendered">
629629
<div title="Nov" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">Nov</div>
@@ -1047,13 +1047,13 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
10471047
<div style="display: inline-block; width: 500px; border: 1px solid #d9d9d9; border-radius: 4px;">
10481048
<div class=" ant-fullcalendar-fullscreen">
10491049
<div class="ant-fullcalendar-header">
1050-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-year-select">
1050+
<div class="ant-select ant-select-enabled ant-fullcalendar-year-select">
10511051
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
10521052
<div class="ant-select-selection__rendered">
10531053
<div title="2017" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">2017</div>
10541054
</div><span unselectable="unselectable" class="ant-select-arrow"><b></b></span></div>
10551055
</div>
1056-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-month-select">
1056+
<div class="ant-select ant-select-enabled ant-fullcalendar-month-select">
10571057
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
10581058
<div class="ant-select-selection__rendered">
10591059
<div title="Jan" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">Jan</div>
@@ -1352,13 +1352,13 @@ exports[`renders ./components/calendar/demo/select.md correctly 1`] = `
13521352
<div style="display: inline-block; width: 500px; margin-left: 20px; border: 1px solid #d9d9d9; border-radius: 4px;">
13531353
<div class=" ant-fullcalendar-fullscreen">
13541354
<div class="ant-fullcalendar-header">
1355-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-year-select">
1355+
<div class="ant-select ant-select-enabled ant-fullcalendar-year-select">
13561356
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
13571357
<div class="ant-select-selection__rendered">
13581358
<div title="2017" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">2017</div>
13591359
</div><span unselectable="unselectable" class="ant-select-arrow"><b></b></span></div>
13601360
</div>
1361-
<div class="ant-select ant-select-enabled ant-select ant-select-enabled ant-fullcalendar-month-select">
1361+
<div class="ant-select ant-select-enabled ant-fullcalendar-month-select">
13621362
<div role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" class="ant-select-selection ant-select-selection--single">
13631363
<div class="ant-select-selection__rendered">
13641364
<div title="Jan" class="ant-select-selection-selected-value" style="display: block; opacity: 1;">Jan</div>

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ exports[`renders ./components/cascader/demo/search.md correctly 1`] = `
6666
`;
6767
6868
exports[`renders ./components/cascader/demo/size.md correctly 1`] = `
69-
<div><span tabindex="0" class="ant-cascader-picker ant-cascader-picker-large ant-cascader-picker ant-cascader-picker-large"><input value="" placeholder="Please select" type="text" readonly="true" class="ant-input ant-cascader-input ant-input-lg ant-cascader-input ant-input-lg"><span class="ant-cascader-picker-label"></span>
69+
<div><span tabindex="0" class="ant-cascader-picker ant-cascader-picker-large"><input value="" placeholder="Please select" type="text" readonly="true" class="ant-input ant-cascader-input ant-input-lg ant-cascader-input ant-input-lg"><span class="ant-cascader-picker-label"></span>
7070
<i
7171
class="anticon anticon-down ant-cascader-picker-arrow"></i>
7272
</span>
@@ -75,7 +75,7 @@ exports[`renders ./components/cascader/demo/size.md correctly 1`] = `
7575
<i class="anticon anticon-down ant-cascader-picker-arrow"></i>
7676
</span>
7777
<br>
78-
<br> <span tabindex="0" class="ant-cascader-picker ant-cascader-picker-small ant-cascader-picker ant-cascader-picker-small"><input value="" placeholder="Please select" type="text" readonly="true" class="ant-input ant-cascader-input ant-input-sm ant-cascader-input ant-input-sm"><span class="ant-cascader-picker-label"></span>
78+
<br> <span tabindex="0" class="ant-cascader-picker ant-cascader-picker-small"><input value="" placeholder="Please select" type="text" readonly="true" class="ant-input ant-cascader-input ant-input-sm ant-cascader-input ant-input-sm"><span class="ant-cascader-picker-label"></span>
7979
<i
8080
class="anticon anticon-down ant-cascader-picker-arrow"></i>
8181
</span>

components/date-picker/__tests__/DatePicker.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ describe('DatePicker', () => {
180180
}, 0)
181181
await asyncExpect(() => {
182182
clearInput(wrapper)
183-
}, 0)
183+
}, 300)
184184
await asyncExpect(() => {
185185
openPanel(wrapper)
186186
}, 0)

components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ exports[`RangePicker show month panel according to value 1`] = `
362362
exports[`RangePicker switch to corresponding month panel when click presetted ranges 1`] = `
363363
<div>
364364
<div class="ant-calendar-picker-container ant-calendar-picker-container-placement-bottomLeft" style="left: -999px; top: -1002px;">
365-
<div tabindex="0" class="ant-calendar ant-calendar-range ant-calendar-time ant-calendar-range-with-ranges ant-calendar-time ant-calendar-range-with-ranges ant-calendar-picker-container-content">
365+
<div tabindex="0" class="ant-calendar ant-calendar-range ant-calendar-time ant-calendar-range-with-ranges ant-calendar-picker-container-content">
366366
<div class="ant-calendar-panel">
367367
<div class="ant-calendar-date-panel">
368368
<div class="ant-calendar-range-part ant-calendar-range-left">

0 commit comments

Comments
 (0)