From 27b72ace8a02c891366474f73cdcf6d135fa6759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 25 Jun 2026 17:33:03 +0800 Subject: [PATCH] test: update rc-select snapshots --- .../Select.checkable.spec.tsx.snap | 16 ++++---- .../Select.multiple.spec.js.snap | 4 +- tests/__snapshots__/Select.spec.tsx.snap | 40 +++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/tests/__snapshots__/Select.checkable.spec.tsx.snap b/tests/__snapshots__/Select.checkable.spec.tsx.snap index e4b179ac..e65699e8 100644 --- a/tests/__snapshots__/Select.checkable.spec.tsx.snap +++ b/tests/__snapshots__/Select.checkable.spec.tsx.snap @@ -87,13 +87,13 @@ exports[`TreeSelect.checkable uncheck remove by selector not treeCheckStrictly 1 aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" style="--select-input-width: 0;" - type="search" + type="text" value="" /> @@ -301,13 +301,13 @@ exports[`TreeSelect.checkable uncheck remove by selector not treeCheckStrictly 2 aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" style="--select-input-width: 0;" - type="search" + type="text" value="" /> @@ -575,13 +575,13 @@ exports[`TreeSelect.checkable uncheck remove by tree check 1`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" style="--select-input-width: 0;" - type="search" + type="text" value="" /> @@ -789,13 +789,13 @@ exports[`TreeSelect.checkable uncheck remove by tree check 2`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" style="--select-input-width: 0;" - type="search" + type="text" value="" /> diff --git a/tests/__snapshots__/Select.multiple.spec.js.snap b/tests/__snapshots__/Select.multiple.spec.js.snap index d1608ab8..74db1c9c 100644 --- a/tests/__snapshots__/Select.multiple.spec.js.snap +++ b/tests/__snapshots__/Select.multiple.spec.js.snap @@ -24,13 +24,13 @@ exports[`TreeSelect.multiple can hide search box by showSearch = false 1`] = ` aria-autocomplete="list" aria-expanded="false" aria-haspopup="listbox" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" style="--select-input-width: 0;" - type="search" + type="text" value="" /> diff --git a/tests/__snapshots__/Select.spec.tsx.snap b/tests/__snapshots__/Select.spec.tsx.snap index fd3d7042..c420d90a 100644 --- a/tests/__snapshots__/Select.spec.tsx.snap +++ b/tests/__snapshots__/Select.spec.tsx.snap @@ -17,12 +17,12 @@ exports[`TreeSelect.basic render renders TreeNode correctly 1`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" - type="search" + type="text" value="" /> @@ -46,12 +46,12 @@ exports[`TreeSelect.basic render renders TreeNode correctly with falsy child 1`] aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" - type="search" + type="text" value="" /> @@ -83,13 +83,13 @@ exports[`TreeSelect.basic render renders correctly 1`] = ` aria-autocomplete="list" aria-expanded="false" aria-haspopup="listbox" - autocomplete="off" + autocomplete="new-password" class="awesome-input" id="test-id" readonly="" role="combobox" style="--select-input-width: 0;" - type="search" + type="text" value="" /> @@ -112,13 +112,13 @@ exports[`TreeSelect.basic render renders disabled correctly 1`] = ` aria-autocomplete="list" aria-expanded="false" aria-haspopup="listbox" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" disabled="" id="test-id" readonly="" role="combobox" - type="search" + type="text" value="" /> @@ -152,13 +152,13 @@ exports[`TreeSelect.basic render renders tree correctly 1`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" style="--select-input-width: 0;" - type="search" + type="text" value="" /> @@ -389,12 +389,12 @@ exports[`TreeSelect.basic render renders treeDataSimpleMode correctly 1`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" readonly="" role="combobox" - type="search" + type="text" value="" /> @@ -534,11 +534,11 @@ exports[`TreeSelect.basic search nodes check tree changed by filter 1`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" role="combobox" - type="search" + type="text" value="a" /> @@ -644,11 +644,11 @@ exports[`TreeSelect.basic search nodes check tree changed by filter 2`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" role="combobox" - type="search" + type="text" value="" /> @@ -783,11 +783,11 @@ exports[`TreeSelect.basic search nodes filter node but not remove then 1`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" role="combobox" - type="search" + type="text" value="a" /> @@ -921,11 +921,11 @@ exports[`TreeSelect.basic search nodes renders search input 1`] = ` aria-expanded="true" aria-haspopup="listbox" aria-owns="test-id_list" - autocomplete="off" + autocomplete="new-password" class="rc-tree-select-input" id="test-id" role="combobox" - type="search" + type="text" value="" />