mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
test: update snapshot
This commit is contained in:
parent
cac056af09
commit
6342cb5d87
File diff suppressed because it is too large
Load Diff
@ -15,15 +15,15 @@ exports[`ConfigProvider.Popup disable virtual if dropdownMatchSelectWidth is fal
|
||||
class="ant-select-selection-search"
|
||||
>
|
||||
<input
|
||||
aria-activedescendant="test-id_list_0"
|
||||
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -78,13 +78,13 @@ exports[`ConfigProvider.Popup disable virtual if dropdownMatchSelectWidth is fal
|
||||
>
|
||||
<input
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -139,13 +139,13 @@ exports[`ConfigProvider.Popup disable virtual if dropdownMatchSelectWidth is fal
|
||||
>
|
||||
<input
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -204,15 +204,15 @@ exports[`ConfigProvider.Popup disable virtual if is false 1`] = `
|
||||
class="ant-select-selection-search"
|
||||
>
|
||||
<input
|
||||
aria-activedescendant="test-id_list_0"
|
||||
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -267,13 +267,13 @@ exports[`ConfigProvider.Popup disable virtual if is false 1`] = `
|
||||
>
|
||||
<input
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -328,13 +328,13 @@ exports[`ConfigProvider.Popup disable virtual if is false 1`] = `
|
||||
>
|
||||
<input
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -393,15 +393,15 @@ exports[`ConfigProvider.Popup disable virtual if popupMatchSelectWidth is false
|
||||
class="ant-select-selection-search"
|
||||
>
|
||||
<input
|
||||
aria-activedescendant="test-id_list_0"
|
||||
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -456,13 +456,13 @@ exports[`ConfigProvider.Popup disable virtual if popupMatchSelectWidth is false
|
||||
>
|
||||
<input
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
@ -517,13 +517,13 @@ exports[`ConfigProvider.Popup disable virtual if popupMatchSelectWidth is false
|
||||
>
|
||||
<input
|
||||
aria-autocomplete="list"
|
||||
aria-controls="test-id_list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-owns="test-id_list"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
id="test-id"
|
||||
id="rc_select_TEST_OR_SSR"
|
||||
readonly=""
|
||||
role="combobox"
|
||||
style="opacity: 0;"
|
||||
|
@ -182,6 +182,9 @@ describe('Steps', () => {
|
||||
content: 'light',
|
||||
status: 'process',
|
||||
},
|
||||
components: {
|
||||
Icon: expect.anything(),
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -1335,6 +1335,152 @@ exports[`renders components/timeline/demo/pending.tsx extend context correctly 1
|
||||
|
||||
exports[`renders components/timeline/demo/pending.tsx extend context correctly 2`] = `[]`;
|
||||
|
||||
exports[`renders components/timeline/demo/pending-legacy.tsx extend context correctly 1`] = `
|
||||
<div
|
||||
class="ant-flex css-var-test-id ant-flex-align-flex-start ant-flex-gap-middle ant-flex-vertical"
|
||||
>
|
||||
<ol
|
||||
class="ant-steps ant-steps-vertical ant-steps-title-horizontal ant-steps-outlined ant-steps-dot ant-timeline css-var-test-id css-var-test-id"
|
||||
style="--steps-items-offset: 0;"
|
||||
>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-finish ant-steps-item-empty-header ant-timeline-item-position-start ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-rail ant-steps-item-rail-process ant-timeline-item-rail"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Create a services site 2015-09-01
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-process ant-steps-item-custom ant-steps-item-active ant-steps-item-empty-header ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
>
|
||||
<span
|
||||
aria-label="loading"
|
||||
class="anticon anticon-loading anticon-spin"
|
||||
role="img"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
data-icon="loading"
|
||||
fill="currentColor"
|
||||
focusable="false"
|
||||
height="1em"
|
||||
viewBox="0 0 1024 1024"
|
||||
width="1em"
|
||||
>
|
||||
<path
|
||||
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Recording...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
<ol
|
||||
class="ant-steps ant-steps-vertical ant-steps-title-horizontal ant-steps-outlined ant-steps-dot ant-timeline css-var-test-id css-var-test-id"
|
||||
style="--steps-items-offset: 0;"
|
||||
>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-finish ant-steps-item-empty-header ant-timeline-item-position-start ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-rail ant-steps-item-rail-process ant-timeline-item-rail"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Create a services site 2015-09-01
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-process ant-steps-item-custom ant-steps-item-active ant-steps-item-empty-header ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
>
|
||||
🔴
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Recording...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`renders components/timeline/demo/pending-legacy.tsx extend context correctly 2`] = `
|
||||
[
|
||||
"Warning: [antd: Timeline] \`pendingDot\` is deprecated. Please use \`items\` instead. You can create a \`item\` as pending node directly.",
|
||||
"Warning: [antd: Timeline] \`pending\` is deprecated. Please use \`items\` instead. You can create a \`item\` as pending node directly.",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`renders components/timeline/demo/semantic.tsx extend context correctly 1`] = `
|
||||
<ol
|
||||
class="ant-steps ant-steps-vertical ant-steps-title-horizontal ant-steps-outlined ant-steps-dot ant-timeline css-var-test-id css-var-test-id"
|
||||
|
@ -1319,6 +1319,145 @@ exports[`renders components/timeline/demo/pending.tsx correctly 1`] = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`renders components/timeline/demo/pending-legacy.tsx correctly 1`] = `
|
||||
<div
|
||||
class="ant-flex css-var-test-id ant-flex-align-flex-start ant-flex-gap-middle ant-flex-vertical"
|
||||
>
|
||||
<ol
|
||||
class="ant-steps ant-steps-vertical ant-steps-title-horizontal ant-steps-outlined ant-steps-dot ant-timeline css-var-test-id css-var-test-id"
|
||||
style="--steps-items-offset:0"
|
||||
>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-finish ant-steps-item-empty-header ant-timeline-item-position-start ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-rail ant-steps-item-rail-process ant-timeline-item-rail"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Create a services site 2015-09-01
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-process ant-steps-item-custom ant-steps-item-active ant-steps-item-empty-header ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
>
|
||||
<span
|
||||
aria-label="loading"
|
||||
class="anticon anticon-loading anticon-spin"
|
||||
role="img"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
data-icon="loading"
|
||||
fill="currentColor"
|
||||
focusable="false"
|
||||
height="1em"
|
||||
viewBox="0 0 1024 1024"
|
||||
width="1em"
|
||||
>
|
||||
<path
|
||||
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Recording...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
<ol
|
||||
class="ant-steps ant-steps-vertical ant-steps-title-horizontal ant-steps-outlined ant-steps-dot ant-timeline css-var-test-id css-var-test-id"
|
||||
style="--steps-items-offset:0"
|
||||
>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-finish ant-steps-item-empty-header ant-timeline-item-position-start ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-rail ant-steps-item-rail-process ant-timeline-item-rail"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Create a services site 2015-09-01
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li
|
||||
class="ant-steps-item ant-steps-item-process ant-steps-item-custom ant-steps-item-active ant-steps-item-empty-header ant-timeline-item"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-wrapper ant-timeline-item-wrapper"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-icon ant-wave-target ant-timeline-item-icon"
|
||||
>
|
||||
🔴
|
||||
</div>
|
||||
<div
|
||||
class="ant-steps-item-section ant-timeline-item-section"
|
||||
>
|
||||
<div
|
||||
class="ant-steps-item-header ant-timeline-item-header"
|
||||
/>
|
||||
<div
|
||||
class="ant-steps-item-content ant-timeline-item-content"
|
||||
>
|
||||
Recording...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`renders components/timeline/demo/semantic.tsx correctly 1`] = `
|
||||
<ol
|
||||
class="ant-steps ant-steps-vertical ant-steps-title-horizontal ant-steps-outlined ant-steps-dot ant-timeline css-var-test-id css-var-test-id"
|
||||
|
Loading…
Reference in New Issue
Block a user