Skip to content

Commit fdc05ff

Browse files
authored
test: update snapshot (#430)
* test: update snapshot * test: update snapshot
1 parent 85754b1 commit fdc05ff

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"dependencies": {
7373
"@babel/runtime": "^7.10.1",
7474
"classnames": "2.x",
75-
"rc-select": "~14.4.0",
75+
"rc-select": "~14.5.0",
7676
"rc-tree": "~5.7.0",
7777
"rc-util": "^5.16.1"
7878
}

tests/__snapshots__/Select.checkable.spec.tsx.snap

+8-4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ exports[`TreeSelect.checkable uncheck remove by selector not treeCheckStrictly 1
110110
class="rc-tree-select-selection-search-input"
111111
id="rc_select_TEST_OR_SSR"
112112
role="combobox"
113+
style=""
113114
type="search"
114115
value=""
115116
/>
@@ -125,7 +126,7 @@ exports[`TreeSelect.checkable uncheck remove by selector not treeCheckStrictly 1
125126
</div>
126127
<div
127128
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
128-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
129+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
129130
>
130131
<div>
131132
<div>
@@ -301,6 +302,7 @@ exports[`TreeSelect.checkable uncheck remove by selector not treeCheckStrictly 2
301302
class="rc-tree-select-selection-search-input"
302303
id="rc_select_TEST_OR_SSR"
303304
role="combobox"
305+
style=""
304306
type="search"
305307
value=""
306308
/>
@@ -319,7 +321,7 @@ exports[`TreeSelect.checkable uncheck remove by selector not treeCheckStrictly 2
319321
</div>
320322
<div
321323
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
322-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
324+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
323325
>
324326
<div>
325327
<div>
@@ -576,6 +578,7 @@ exports[`TreeSelect.checkable uncheck remove by tree check 1`] = `
576578
class="rc-tree-select-selection-search-input"
577579
id="rc_select_TEST_OR_SSR"
578580
role="combobox"
581+
style=""
579582
type="search"
580583
value="0"
581584
/>
@@ -591,7 +594,7 @@ exports[`TreeSelect.checkable uncheck remove by tree check 1`] = `
591594
</div>
592595
<div
593596
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
594-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
597+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
595598
>
596599
<div>
597600
<div>
@@ -767,6 +770,7 @@ exports[`TreeSelect.checkable uncheck remove by tree check 2`] = `
767770
class="rc-tree-select-selection-search-input"
768771
id="rc_select_TEST_OR_SSR"
769772
role="combobox"
773+
style=""
770774
type="search"
771775
value="0"
772776
/>
@@ -782,7 +786,7 @@ exports[`TreeSelect.checkable uncheck remove by tree check 2`] = `
782786
</div>
783787
<div
784788
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
785-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
789+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
786790
>
787791
<div>
788792
<div>

tests/__snapshots__/Select.multiple.spec.js.snap

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ exports[`TreeSelect.multiple can hide search box by showSearch = false 1`] = `
2121
<input
2222
aria-autocomplete="list"
2323
aria-controls="rc_select_TEST_OR_SSR_list"
24+
aria-expanded="false"
2425
aria-haspopup="listbox"
2526
aria-owns="rc_select_TEST_OR_SSR_list"
2627
autocomplete="off"

tests/__snapshots__/Select.spec.tsx.snap

+9-7
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ exports[`TreeSelect.basic render renders TreeNode correctly 1`] = `
3333
</div>
3434
<div
3535
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
36-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
36+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
3737
>
3838
<div>
3939
<div>
@@ -236,7 +236,7 @@ exports[`TreeSelect.basic render renders TreeNode correctly with falsy child 1`]
236236
</div>
237237
<div
238238
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
239-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
239+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
240240
>
241241
<div>
242242
<div>
@@ -428,6 +428,7 @@ exports[`TreeSelect.basic render renders correctly 1`] = `
428428
<input
429429
aria-autocomplete="list"
430430
aria-controls="rc_select_TEST_OR_SSR_list"
431+
aria-expanded="false"
431432
aria-haspopup="listbox"
432433
aria-owns="rc_select_TEST_OR_SSR_list"
433434
autocomplete="off"
@@ -522,6 +523,7 @@ exports[`TreeSelect.basic render renders tree correctly 1`] = `
522523
<input
523524
aria-autocomplete="list"
524525
aria-controls="rc_select_TEST_OR_SSR_list"
526+
aria-expanded="false"
525527
aria-haspopup="listbox"
526528
aria-owns="rc_select_TEST_OR_SSR_list"
527529
autocomplete="off"
@@ -584,7 +586,7 @@ exports[`TreeSelect.basic render renders treeDataSimpleMode correctly 1`] = `
584586
</div>
585587
<div
586588
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
587-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
589+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
588590
>
589591
<div>
590592
<div>
@@ -731,7 +733,7 @@ exports[`TreeSelect.basic search nodes check tree changed by filter 1`] = `
731733
</div>
732734
<div
733735
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
734-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
736+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
735737
>
736738
<div>
737739
<div>
@@ -848,7 +850,7 @@ exports[`TreeSelect.basic search nodes check tree changed by filter 2`] = `
848850
</div>
849851
<div
850852
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
851-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
853+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
852854
>
853855
<div>
854856
<div>
@@ -991,7 +993,7 @@ exports[`TreeSelect.basic search nodes filter node but not remove then 1`] = `
991993
</div>
992994
<div
993995
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
994-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
996+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
995997
>
996998
<div>
997999
<div>
@@ -1132,7 +1134,7 @@ exports[`TreeSelect.basic search nodes renders search input 1`] = `
11321134
</div>
11331135
<div
11341136
class="rc-tree-select-dropdown rc-tree-select-dropdown-placement-bottomLeft"
1135-
style="left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
1137+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 0; width: 0px;"
11361138
>
11371139
<div>
11381140
<div>

0 commit comments

Comments
 (0)