Skip to content

fix(FieldCheckbox):设置了fieldNames后控制器报错的问题 React does not recognize the… #13257

fix(FieldCheckbox):设置了fieldNames后控制器报错的问题 React does not recognize the…

fix(FieldCheckbox):设置了fieldNames后控制器报错的问题 React does not recognize the… #13257

Triggered via pull request October 14, 2024 01:51
Status Failure
Total duration 6m 2s
Artifacts

coverage.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
tests/doc.test.ts > docs/components demos > 📸 renders ./docs/components/customization-value-type.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `docs/components demos > 📸 renders ./docs/components/customization-value-type.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 24px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > SchemaForm </div> </div> <div class="ant-pro-card-body" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" title="自定义 valueType" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 标签 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="只读链接" > 只读链接 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <a> TradeCode 1 </a> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="链接" > 链接 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input ant-input-outlined" id="name"
tests/doc.test.ts > docs/components demos > 📸 renders ./docs/components/valueEnum-map.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `docs/components demos > 📸 renders ./docs/components/valueEnum-map.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-pro-table" > <div class="ant-pro-card ant-pro-table-search ant-pro-table-search-query-filter" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status1" title="状态(number)" > 状态(number) </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-outlined ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 100%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="status1_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="status1_list" autocomplete="off" class="ant-select-selection-search-input" id="status1" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;"
tests/doc.test.ts > docs/components demos > 📸 renders ./docs/components/valueType.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `docs/components demos > 📸 renders ./docs/components/valueType.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="valueType 选择" > valueType 选择 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-outlined ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-search" style="width: 200px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="文本框" > 文本框 </span> </div> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div>
tests/card/demo.test.ts > card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/form.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/form.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div> <form class="ant-form ant-form-vertical" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox-group" title="技术栈" > 技术栈 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-pro-checkcard-group" id="checkbox-group" style="width: 100%;" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/2dd637c7-5f50-4d89-a819-33b3d6da73b6.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title ant-pro-checkcard-title-with-ellipsis" > Spring Boot </div> </div> </div> <div class="ant-pro-checkcard-description" > 通过业界流行的技术栈来快速构建 Java 后端应用 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/6935b98e-96f6-464f-9d4f-215b917c6548.svg" /> </span> </div> <div
tests/card/demo.test.ts > card demos > 📸 renders ./packages/card/src/demos/collapsible.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `card demos > 📸 renders ./packages/card/src/demos/collapsible.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div style="display: flex; flex-direction: column; padding: 24px; gap: 12px;" > <div class="ant-pro-card ant-pro-card-collapse" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 可折叠 </div> <div class="ant-pro-card-extra" > <button class="ant-btn ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-btn-sm" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-collapse" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 可折叠 </div> <div class="ant-pro-card-extra" > <button class="ant-btn ant-btn-default ant-btn-color-default ant-btn-variant-outlined ant-btn-sm" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-size-small ant-pro-card-collapse" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label
tests/card/demo.test.ts > card demos > 📸 renders ./packages/card/src/demos/steps-v.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `card demos > 📸 renders ./packages/card/src/demos/steps-v.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" style="height: 320px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical ant-pro-card-col-6" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-steps ant-steps-vertical ant-steps-small" style="height: 100%;" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 填写基本信息 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 配置模板 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 配置访问 </div> </div> </div> </div> <div class="ant-steps-item ant-ste
tests/descriptions/demo.test.ts > descriptions demos > 📸 renders ./packages/descriptions/src/demos/arrayDataIndex.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `descriptions demos > 📸 renders ./packages/descriptions/src/demos/arrayDataIndex.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 高级定义列表 request </div> <div class="ant-descriptions-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <button class="ant-btn ant-btn-primary ant-btn-color-primary ant-btn-variant-solid" type="button" > <span> 刷 新 </span> </button> <button class="ant-btn ant-btn-default ant-btn-color-default ant-btn-variant-outlined" type="button" > <span> 重 置 </span> </button> </div> </div> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > 这是一段文本 </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span>
tests/descriptions/demo.test.ts > descriptions demos > 📸 renders ./packages/descriptions/src/demos/base.demo-test.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `descriptions demos > 📸 renders ./packages/descriptions/src/demos/base.demo-test.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <button class="ant-btn ant-btn-primary ant-btn-color-primary ant-btn-variant-solid" type="button" > <span> 提 交 </span> </button> <div class="ant-descriptions ant-pro-descriptions" tooltip="包含了从服务器请求,columns等功能" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 高级定义列表 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 2 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > - </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </body> </html>... ❯ tests/demo.tsx:131:40 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/.pnpm/@testing-library+dom
tests/descriptions/demo.test.ts > descriptions demos > 📸 renders ./packages/descriptions/src/demos/base.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `descriptions demos > 📸 renders ./packages/descriptions/src/demos/base.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" tooltip="包含了从服务器请求,columns等功能" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 高级定义列表 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-descriptions-extra" > <button class="ant-btn ant-btn-primary ant-btn-color-primary ant-btn-variant-solid" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" style="min-width: 0; max-width: 80%;" > <span class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 这是一段很长很长超级超级长的无意义说明文本并且重复了很多没有意义的词语,就是为了让它变得很长很长超级超级长这是一段很长很长超级超级长的无意义说明文本并且重复了很多没有意义的词语,就是为了让它变得很长很长超级超级长 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > <div
tests/descriptions/demo.test.ts > descriptions demos > 📸 renders ./packages/descriptions/src/demos/editable.tsx correctly: tests/demo.tsx#L131
Error: Snapshot `descriptions demos > 📸 renders ./packages/descriptions/src/demos/editable.tsx correctly 20` mismatched Ignored nodes: comments, script, style <html> <head /> <body> <div> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 可编辑的定义列表 </div> <div class="ant-descriptions-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a rel="noopener noreferrer" target="_blank" > 链路 </a> <a rel="noopener noreferrer" target="_blank" > 报警 </a> <a rel="noopener noreferrer" target="_blank" > 查看 </a> </div> </div> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span aria-label="这是一段文本columns" class="ant-typography ant-typography-ellipsis" style="width: 100%; margin: 0px; padding: 0px;" title="" > 这是一段文本columns <button aria-label="复制" class="ant-typography-copy" type="button" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832
build
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/