improve(design): ConfigProvider add appProps to control .ant-app style work #482
Annotations
10 errors and 1 warning
src/config-provider/__tests__/form.test.tsx > ConfigProvider form > ConfigProvider form.requiredMark should be `optional` by default and work for ProForm:
packages/design/src/config-provider/__tests__/form.test.tsx#L34
Error: Snapshot `ConfigProvider form > ConfigProvider form.requiredMark should be `optional` by default and work for ProForm 1` mismatched
- Expected
+ Received
- <form
+ <div
+ class="ant-app"
+ >
+ <form
- autocomplete="off"
+ autocomplete="off"
- class="ant-form ant-form-vertical ant-pro-form"
+ class="ant-form ant-form-vertical ant-pro-form"
- >
+ >
- <input
+ <input
- style="display: none;"
+ style="display: none;"
- type="text"
+ type="text"
- />
+ />
- <div
+ <div
- class="ant-form-item"
+ class="ant-form-item"
- >
+ >
- <div
+ <div
- class="ant-row ant-form-item-row"
+ class="ant-row ant-form-item-row"
- >
+ >
- <div
+ <div
- class="ant-col ant-form-item-label"
+ class="ant-col ant-form-item-label"
- >
+ >
- <label
+ <label
- class="ant-form-item-required ant-form-item-required-mark-optional"
+ class="ant-form-item-required ant-form-item-required-mark-optional"
- for="name"
+ for="name"
- title="Name"
+ title="Name"
- >
+ >
- Name
+ Name
- </label>
+ </label>
- </div>
+ </div>
- <div
+ <div
- class="ant-col ant-form-item-control"
+ class="ant-col ant-form-item-control"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input"
+ class="ant-form-item-control-input"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input-content"
+ class="ant-form-item-control-input-content"
- >
+ >
- <span
+ <span
- class="ant-input-affix-wrapper ant-input-affix-wrapper-focused ant-input-outlined"
+ class="ant-input-affix-wrapper ant-input-affix-wrapper-focused ant-input-outlined"
- >
- <input
+ >
+ <input
- class="ant-input"
+ class="ant-input"
- id="name"
+ id="name"
- placeholder="请输入"
+ placeholder="请输入"
- type="text"
+ type="text"
- value=""
+ value=""
- />
+ />
- <span
+ <span
- class="ant-input-suffix"
+ class="ant-input-suffix"
- >
+ >
- <span
+ <span
- class="ant-input-clear-icon ant-input-clear-icon-hidden"
+ class="ant-input-clear-icon ant-input-clear-icon-hidden"
- role="button"
+ role="button"
- tabindex="-1"
+ tabindex="-1"
- >
+ >
- <span
+ <span
- aria-label="close-circle"
+ aria-label="close-circle"
- class="anticon anticon-close-circle"
+ class="anticon anticon-close-circle"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="close-circle"
+ data-icon="close-circle"
- fill="currentColor"
+ fill="currentColor"
- fill-rule="evenodd"
+ fill-rule="evenodd"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ view
|
src/config-provider/__tests__/spin.test.tsx > ConfigProvider spin > spin.indicator should work:
packages/design/src/config-provider/__tests__/spin.test.tsx#L18
Error: Snapshot `ConfigProvider spin > spin.indicator should work 1` mismatched
- Expected
+ Received
<div
- aria-busy="true"
+ class="ant-app"
+ >
+ <div
+ aria-busy="true"
- aria-live="polite"
+ aria-live="polite"
- class="ant-spin ant-spin-spinning"
+ class="ant-spin ant-spin-spinning"
- >
+ >
- <div
+ <div
- class="custom-indicator ant-spin-dot"
+ class="custom-indicator ant-spin-dot"
- />
+ />
+ </div>
</div>
❯ src/config-provider/__tests__/spin.test.tsx:18:37
|
src/config-provider/__tests__/spin.test.tsx > ConfigProvider spin > spin.indicator should work in nested ConfigProvider:
packages/design/src/config-provider/__tests__/spin.test.tsx#L43
Error: Snapshot `ConfigProvider spin > spin.indicator should work in nested ConfigProvider 1` mismatched
- Expected
+ Received
<div
- aria-busy="true"
+ class="ant-app"
+ >
+ <div
+ class="ant-app"
+ >
+ <div
+ aria-busy="true"
- aria-live="polite"
+ aria-live="polite"
- class="ant-spin ant-spin-spinning"
+ class="ant-spin ant-spin-spinning"
- >
+ >
- <div
+ <div
- class="custom-indicator-1 ant-spin-dot"
+ class="custom-indicator-1 ant-spin-dot"
- />
+ />
+ </div>
+ </div>
+ <div
+ class="ant-app"
+ >
+ <div
+ aria-busy="true"
+ aria-live="polite"
+ class="ant-spin ant-spin-spinning"
+ >
+ <div
+ class="custom-indicator-2 ant-spin-dot"
+ />
+ </div>
+ </div>
</div>
❯ src/config-provider/__tests__/spin.test.tsx:43:37
|
src/config-provider/__tests__/styleProviderProps.test.tsx > ConfigProvider styleProviderProps > ConfigProvider styleProviderProps.hashPriority:
packages/design/src/config-provider/__tests__/styleProviderProps.test.tsx#L43
Error: Snapshot `ConfigProvider styleProviderProps > ConfigProvider styleProviderProps.hashPriority 1` mismatched
- Expected
+ Received
- <div />
+ <div
+ class="ant-app"
+ >
+ <div />
+ <div
+ class="ant-app"
+ >
+ <div />
+ </div>
+ <div
+ class="ant-app"
+ >
+ <div />
+ </div>
+ </div>
❯ src/config-provider/__tests__/styleProviderProps.test.tsx:43:37
|
src/form/__tests__/index.test.tsx > Form > requiredMark could be changed by ConfigProvider:
packages/design/src/form/__tests__/index.test.tsx#L59
Error: Snapshot `Form > requiredMark could be changed by ConfigProvider 1` mismatched
- Expected
+ Received
- <form
+ <div
+ class="ant-app"
+ >
+ <form
- class="ant-form ant-form-horizontal"
+ class="ant-form ant-form-horizontal"
- >
+ >
- <div
+ <div
- class="ant-form-item"
+ class="ant-form-item"
- >
+ >
- <div
+ <div
- class="ant-row ant-form-item-row"
+ class="ant-row ant-form-item-row"
- >
+ >
- <div
+ <div
- class="ant-col ant-form-item-label"
+ class="ant-col ant-form-item-label"
- >
+ >
- <label
+ <label
- class="ant-form-item-required"
+ class="ant-form-item-required"
- for="name"
+ for="name"
- title="Name"
+ title="Name"
- >
+ >
- Name
+ Name
- </label>
+ </label>
- </div>
+ </div>
- <div
+ <div
- class="ant-col ant-form-item-control"
+ class="ant-col ant-form-item-control"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input"
+ class="ant-form-item-control-input"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input-content"
+ class="ant-form-item-control-input-content"
- >
+ >
- <input
+ <input
- aria-required="true"
+ aria-required="true"
- class="ant-input ant-input-outlined"
+ class="ant-input ant-input-outlined"
- id="name"
+ id="name"
- placeholder="Please enter"
+ placeholder="Please enter"
- type="text"
+ type="text"
- value=""
+ value=""
- />
+ />
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- <div
+ <div
- class="ant-form-item"
+ class="ant-form-item"
- >
+ >
- <div
+ <div
- class="ant-row ant-form-item-row"
+ class="ant-row ant-form-item-row"
- >
- <div
+ >
+ <div
- class="ant-col ant-form-item-label"
+ class="ant-col ant-form-item-label"
- >
+ >
- <label
+ <label
- class=""
+ class=""
- for="address"
+ for="address"
- title="Address"
+ title="Address"
- >
+ >
- Address
+ Address
- </label>
+ </label>
- </div>
+ </div>
- <div
+ <div
- class="ant-col ant-form-item-control"
+ class="ant-col ant-form-item-control"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input"
+ class="ant-form-item-control-input"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input-content"
+ class="ant-form-item-control-input-content"
- >
+ >
- <input
+ <input
- class="ant-input ant-input-outlined"
+ class="ant-input ant-input-outlined"
- id="address"
+ id="address"
- placeholder="Please enter"
+ placeholder="Please enter"
- type="text"
+ type="text"
- value=""
+ value=""
- />
+ />
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </form>
+ </form>
+ </div>
❯ src/form/__tests__/index.test.tsx:59:37
|
src/form/__tests__/index.test.tsx > Form > Form hideRequiredMark should be priority over ConfigProvider form.requiredMark:
packages/design/src/form/__tests__/index.test.tsx#L72
Error: Snapshot `Form > Form hideRequiredMark should be priority over ConfigProvider form.requiredMark 1` mismatched
- Expected
+ Received
- <form
+ <div
+ class="ant-app"
+ >
+ <form
- class="ant-form ant-form-horizontal ant-form-hide-required-mark"
+ class="ant-form ant-form-horizontal ant-form-hide-required-mark"
- >
+ >
- <div
+ <div
- class="ant-form-item"
+ class="ant-form-item"
- >
+ >
- <div
+ <div
- class="ant-row ant-form-item-row"
+ class="ant-row ant-form-item-row"
- >
+ >
- <div
+ <div
- class="ant-col ant-form-item-label"
+ class="ant-col ant-form-item-label"
- >
+ >
- <label
+ <label
- class="ant-form-item-required"
+ class="ant-form-item-required"
- for="name"
+ for="name"
- title="Name"
+ title="Name"
- >
+ >
- Name
+ Name
- </label>
+ </label>
- </div>
+ </div>
- <div
+ <div
- class="ant-col ant-form-item-control"
+ class="ant-col ant-form-item-control"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input"
+ class="ant-form-item-control-input"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input-content"
+ class="ant-form-item-control-input-content"
- >
+ >
- <input
+ <input
- aria-required="true"
+ aria-required="true"
- class="ant-input ant-input-outlined"
+ class="ant-input ant-input-outlined"
- id="name"
+ id="name"
- placeholder="Please enter"
+ placeholder="Please enter"
- type="text"
+ type="text"
- value=""
+ value=""
- />
+ />
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- <div
+ <div
- class="ant-form-item"
+ class="ant-form-item"
- >
+ >
- <div
+ <div
- class="ant-row ant-form-item-row"
+ class="ant-row ant-form-item-row"
- >
- <div
+ >
+ <div
- class="ant-col ant-form-item-label"
+ class="ant-col ant-form-item-label"
- >
+ >
- <label
+ <label
- class=""
+ class=""
- for="address"
+ for="address"
- title="Address"
+ title="Address"
- >
+ >
- Address
+ Address
- </label>
+ </label>
- </div>
+ </div>
- <div
+ <div
- class="ant-col ant-form-item-control"
+ class="ant-col ant-form-item-control"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input"
+ class="ant-form-item-control-input"
- >
+ >
- <div
+ <div
- class="ant-form-item-control-input-content"
+ class="ant-form-item-control-input-content"
- >
+ >
- <input
+ <input
- class="ant-input ant-input-outlined"
+ class="ant-input ant-input-outlined"
- id="address"
+ id="address"
- placeholder="Please enter"
+ placeholder="Please enter"
- type="text"
+ type="text"
- value=""
+ value=""
- />
+ />
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </div>
+ </div>
- </form>
+ </form>
+ </div>
❯ src/form/__tests__/index.test.tsx:72:37
|
src/input-number/__tests__/placeholder.test.tsx > InputNumber placeholder > ConfigProvider locale.global.placeholder should work:
packages/design/src/input-number/__tests__/placeholder.test.tsx#L41
Error: Snapshot `InputNumber placeholder > ConfigProvider locale.global.placeholder should work 1` mismatched
- Expected
+ Received
<div
- class="ant-input-number ant-input-number-outlined"
+ class="ant-app"
+ >
+ <div
+ class="ant-input-number ant-input-number-outlined"
- >
+ >
- <div
+ <div
- class="ant-input-number-handler-wrap"
+ class="ant-input-number-handler-wrap"
- >
+ >
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Increase Value"
+ aria-label="Increase Value"
- class="ant-input-number-handler ant-input-number-handler-up"
+ class="ant-input-number-handler ant-input-number-handler-up"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="up"
+ aria-label="up"
- class="anticon anticon-up ant-input-number-handler-up-inner"
+ class="anticon anticon-up ant-input-number-handler-up-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="up"
+ data-icon="up"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
+ >
- <path
+ <path
- d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
+ d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Decrease Value"
+ aria-label="Decrease Value"
- class="ant-input-number-handler ant-input-number-handler-down"
+ class="ant-input-number-handler ant-input-number-handler-down"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="down"
+ aria-label="down"
- class="anticon anticon-down ant-input-number-handler-down-inner"
+ class="anticon anticon-down ant-input-number-handler-down-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="down"
+ data-icon="down"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
- <path
+ >
+ <path
- d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
+ d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- </div>
+ </div>
- <div
+ <div
- class="ant-input-number-input-wrap"
+ class="ant-input-number-in
|
src/input-number/__tests__/placeholder.test.tsx > InputNumber placeholder > InputNumber placeholder should be priority to ConfigProvider locale.global.inputPlaceholder:
packages/design/src/input-number/__tests__/placeholder.test.tsx#L60
Error: Snapshot `InputNumber placeholder > InputNumber placeholder should be priority to ConfigProvider locale.global.inputPlaceholder 1` mismatched
- Expected
+ Received
<div
- class="ant-input-number ant-input-number-outlined"
+ class="ant-app"
+ >
+ <div
+ class="ant-input-number ant-input-number-outlined"
- >
+ >
- <div
+ <div
- class="ant-input-number-handler-wrap"
+ class="ant-input-number-handler-wrap"
- >
+ >
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Increase Value"
+ aria-label="Increase Value"
- class="ant-input-number-handler ant-input-number-handler-up"
+ class="ant-input-number-handler ant-input-number-handler-up"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="up"
+ aria-label="up"
- class="anticon anticon-up ant-input-number-handler-up-inner"
+ class="anticon anticon-up ant-input-number-handler-up-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="up"
+ data-icon="up"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
+ >
- <path
+ <path
- d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
+ d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Decrease Value"
+ aria-label="Decrease Value"
- class="ant-input-number-handler ant-input-number-handler-down"
+ class="ant-input-number-handler ant-input-number-handler-down"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="down"
+ aria-label="down"
- class="anticon anticon-down ant-input-number-handler-down-inner"
+ class="anticon anticon-down ant-input-number-handler-down-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="down"
+ data-icon="down"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
- <path
+ >
+ <path
- d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
+ d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- </div>
+ </div>
- <div
+ <div
- class="ant-input-number-input-w
|
src/input-number/__tests__/placeholder.test.tsx > InputNumber placeholder > ConfigProvider locale.InputNumber.placeholder should work:
packages/design/src/input-number/__tests__/placeholder.test.tsx#L79
Error: Snapshot `InputNumber placeholder > ConfigProvider locale.InputNumber.placeholder should work 1` mismatched
- Expected
+ Received
<div
- class="ant-input-number ant-input-number-outlined"
+ class="ant-app"
+ >
+ <div
+ class="ant-input-number ant-input-number-outlined"
- >
+ >
- <div
+ <div
- class="ant-input-number-handler-wrap"
+ class="ant-input-number-handler-wrap"
- >
+ >
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Increase Value"
+ aria-label="Increase Value"
- class="ant-input-number-handler ant-input-number-handler-up"
+ class="ant-input-number-handler ant-input-number-handler-up"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="up"
+ aria-label="up"
- class="anticon anticon-up ant-input-number-handler-up-inner"
+ class="anticon anticon-up ant-input-number-handler-up-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="up"
+ data-icon="up"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
+ >
- <path
+ <path
- d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
+ d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Decrease Value"
+ aria-label="Decrease Value"
- class="ant-input-number-handler ant-input-number-handler-down"
+ class="ant-input-number-handler ant-input-number-handler-down"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="down"
+ aria-label="down"
- class="anticon anticon-down ant-input-number-handler-down-inner"
+ class="anticon anticon-down ant-input-number-handler-down-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="down"
+ data-icon="down"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
- <path
+ >
+ <path
- d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
+ d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- </div>
+ </div>
- <div
+ <div
- class="ant-input-number-input-wrap"
+ class="ant-input-numb
|
src/input-number/__tests__/placeholder.test.tsx > InputNumber placeholder > InputNumber placeholder should be priority to ConfigProvider locale.InputNumber.placeholder:
packages/design/src/input-number/__tests__/placeholder.test.tsx#L98
Error: Snapshot `InputNumber placeholder > InputNumber placeholder should be priority to ConfigProvider locale.InputNumber.placeholder 1` mismatched
- Expected
+ Received
<div
- class="ant-input-number ant-input-number-outlined"
+ class="ant-app"
+ >
+ <div
+ class="ant-input-number ant-input-number-outlined"
- >
+ >
- <div
+ <div
- class="ant-input-number-handler-wrap"
+ class="ant-input-number-handler-wrap"
- >
+ >
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Increase Value"
+ aria-label="Increase Value"
- class="ant-input-number-handler ant-input-number-handler-up"
+ class="ant-input-number-handler ant-input-number-handler-up"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="up"
+ aria-label="up"
- class="anticon anticon-up ant-input-number-handler-up-inner"
+ class="anticon anticon-up ant-input-number-handler-up-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="up"
+ data-icon="up"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
+ >
- <path
+ <path
- d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
+ d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- <span
+ <span
- aria-disabled="false"
+ aria-disabled="false"
- aria-label="Decrease Value"
+ aria-label="Decrease Value"
- class="ant-input-number-handler ant-input-number-handler-down"
+ class="ant-input-number-handler ant-input-number-handler-down"
- role="button"
+ role="button"
- unselectable="on"
+ unselectable="on"
- >
+ >
- <span
+ <span
- aria-label="down"
+ aria-label="down"
- class="anticon anticon-down ant-input-number-handler-down-inner"
+ class="anticon anticon-down ant-input-number-handler-down-inner"
- role="img"
+ role="img"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- data-icon="down"
+ data-icon="down"
- fill="currentColor"
+ fill="currentColor"
- focusable="false"
+ focusable="false"
- height="1em"
+ height="1em"
- viewBox="64 64 896 896"
+ viewBox="64 64 896 896"
- width="1em"
+ width="1em"
- >
- <path
+ >
+ <path
- d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
+ d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
- />
+ />
- </svg>
+ </svg>
- </span>
+ </span>
- </span>
+ </span>
- </div>
+ </div>
- <div
+ <div
- class="ant-input-number-input-w
|
test (16.x, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|