Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
nnmax committed Jan 8, 2024
1 parent 82e600c commit 0a8c1d7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 69 deletions.
10 changes: 2 additions & 8 deletions tests/__snapshots__/Combobox.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ exports[`Select.Combobox renders controlled correctly 1`] = `
/>
</span>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value=""
/>
<span
Expand Down Expand Up @@ -66,11 +63,8 @@ exports[`Select.Combobox renders correctly 1`] = `
/>
</span>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value=""
/>
<span
Expand Down
20 changes: 4 additions & 16 deletions tests/__snapshots__/Multiple.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@ exports[`Select.Multiple render not display maxTagPlaceholder if maxTagCount not
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value=""
/>
<span
Expand Down Expand Up @@ -172,11 +169,8 @@ exports[`Select.Multiple render truncates tags by maxTagCount and show maxTagPla
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value="one,two,three"
/>
</div>
Expand Down Expand Up @@ -297,11 +291,8 @@ exports[`Select.Multiple render truncates tags by maxTagCount and show maxTagPla
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value="one,two,three"
/>
</div>
Expand Down Expand Up @@ -406,11 +397,8 @@ exports[`Select.Multiple render truncates values by maxTagTextLength 1`] = `
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value="one,two"
/>
</div>
Expand Down
30 changes: 6 additions & 24 deletions tests/__snapshots__/Select.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,8 @@ exports[`Select.Basic no search 1`] = `
/>
</span>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position:absolute;overflow:hidden;width:1px;height:1px;border:0;margin:-1px;padding:0;clip:rect(0 0 0 0);white-space:nowrap"
value="1"
/>
<span
Expand Down Expand Up @@ -180,11 +177,8 @@ exports[`Select.Basic render renders aria-attributes correctly 1`] = `
/>
</span>
<input
aria-hidden="true"
class="antd-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position:absolute;overflow:hidden;width:1px;height:1px;border:0;margin:-1px;padding:0;clip:rect(0 0 0 0);white-space:nowrap"
value="2"
/>
<span
Expand Down Expand Up @@ -233,11 +227,8 @@ exports[`Select.Basic render renders correctly 1`] = `
/>
</span>
<input
aria-hidden="true"
class="antd-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position:absolute;overflow:hidden;width:1px;height:1px;border:0;margin:-1px;padding:0;clip:rect(0 0 0 0);white-space:nowrap"
value="2"
/>
<span
Expand Down Expand Up @@ -288,11 +279,8 @@ exports[`Select.Basic render renders data-attributes correctly 1`] = `
/>
</span>
<input
aria-hidden="true"
class="antd-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position:absolute;overflow:hidden;width:1px;height:1px;border:0;margin:-1px;padding:0;clip:rect(0 0 0 0);white-space:nowrap"
value="2"
/>
<span
Expand Down Expand Up @@ -342,11 +330,8 @@ exports[`Select.Basic render renders disabled select correctly 1`] = `
/>
</span>
<input
aria-hidden="true"
class="antd-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position:absolute;overflow:hidden;width:1px;height:1px;border:0;margin:-1px;padding:0;clip:rect(0 0 0 0);white-space:nowrap"
value="2"
/>
<span
Expand Down Expand Up @@ -386,11 +371,8 @@ exports[`Select.Basic render renders role prop correctly 1`] = `
/>
</span>
<input
aria-hidden="true"
class="antd-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position:absolute;overflow:hidden;width:1px;height:1px;border:0;margin:-1px;padding:0;clip:rect(0 0 0 0);white-space:nowrap"
value="2"
/>
<span
Expand Down
25 changes: 5 additions & 20 deletions tests/__snapshots__/Tags.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,8 @@ exports[`Select.Tags OptGroup renders correctly 1`] = `
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value="jack,foo"
/>
</div>
Expand Down Expand Up @@ -278,11 +275,8 @@ exports[`Select.Tags render not display maxTagPlaceholder if maxTagCount not rea
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value=""
/>
<span
Expand Down Expand Up @@ -403,11 +397,8 @@ exports[`Select.Tags render truncates tags by maxTagCount and show maxTagPlaceho
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value="one,two,three"
/>
</div>
Expand Down Expand Up @@ -525,11 +516,8 @@ exports[`Select.Tags render truncates tags by maxTagCount and show maxTagPlaceho
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value="one,two,three"
/>
</div>
Expand Down Expand Up @@ -631,11 +619,8 @@ exports[`Select.Tags render truncates values by maxTagTextLength 1`] = `
</div>
</div>
<input
aria-hidden="true"
class="rc-select-native-input"
readonly=""
tabindex="-1"
type="hidden"
style="position: absolute; overflow: hidden; width: 1px; height: 1px; border: 0px; margin: -1px; padding: 0px; white-space: nowrap;"
value="one,two"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/ssr.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Select.SSR should work 1`] = `"<div class="rc-select rc-select-single"><div class="rc-select-selector"><span class="rc-select-selection-search"><input type="search" autoComplete="off" class="rc-select-selection-search-input" role="combobox" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" aria-autocomplete="list" aria-controls="undefined_list" value="" readonly="" unselectable="on" style="opacity:0"/></span><input type="hidden" aria-hidden="true" tabindex="-1" readonly="" class="rc-select-native-input"/><span class="rc-select-selection-placeholder"></span></div></div>"`;
exports[`Select.SSR should work 1`] = `"<div class="rc-select rc-select-single"><div class="rc-select-selector"><span class="rc-select-selection-search"><input type="search" autoComplete="off" class="rc-select-selection-search-input" role="combobox" aria-expanded="false" aria-haspopup="listbox" aria-owns="undefined_list" aria-autocomplete="list" aria-controls="undefined_list" value="" readonly="" unselectable="on" style="opacity:0"/></span><input class="rc-select-native-input" style="position:absolute;overflow:hidden;width:1px;height:1px;border:0;margin:-1px;padding:0;clip:rect(0 0 0 0);white-space:nowrap"/><span class="rc-select-selection-placeholder"></span></div></div>"`;

0 comments on commit 0a8c1d7

Please sign in to comment.