Skip to content

Revert "fix: userMeta设置backgroundColor 不生效的问题 (#295)" #747

Revert "fix: userMeta设置backgroundColor 不生效的问题 (#295)"

Revert "fix: userMeta设置backgroundColor 不生效的问题 (#295)" #747

Triggered via pull request August 9, 2024 09:20
Status Failure
Total duration 1m 48s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders sse.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders sse.tsx correctly 1` mismatched - Expected + Received @@ -91,57 +91,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders sse-trans.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders sse-trans.tsx correctly 1` mismatched - Expected + Received @@ -91,57 +91,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders request.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders request.tsx correctly 1` mismatched - Expected + Received @@ -91,57 +91,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - Back to bottom - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders no-stream.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders no-stream.tsx correctly 1` mismatched - Expected + Received @@ -91,57 +91,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders modal.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders modal.tsx correctly 1` mismatched - Expected + Received @@ -88,57 +88,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders loading.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders loading.tsx correctly 1` mismatched - Expected + Received @@ -98,57 +98,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders listener.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders listener.tsx correctly 1` mismatched - Expected + Received @@ -98,57 +98,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders i18n.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders i18n.tsx correctly 1` mismatched - Expected + Received @@ -142,57 +142,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - Back to bottom - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders helloMessage.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders helloMessage.tsx correctly 1` mismatched - Expected + Received @@ -78,57 +78,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div @@ -353,57 +306,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders error.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders error.tsx correctly 1` mismatched - Expected + Received @@ -91,57 +91,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div @@ -363,57 +316,10 @@ </div> <div style="height: 1px; width: 100%;" /> </div> - <button - class="ant-btn ant-btn-default ant-btn-sm acss-1nxnbtq" - style="bottom: 138px; position: absolute; right: 16px;" - type="button" - > - <span - class="ant-btn-icon" - > - <span - class="anticon" - role="img" - > - <svg - class="lucide lucide-list-end" - fill="transparent" - focusable="false" - height="1em" - stroke="currentColor" - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - viewBox="0 0 24 24" - width="1em" - xmlns="http://www.w3.org/2000/svg" - > - <path - d="M16 12H3" - /> - <path - d="M16 6H3" - /> - <path - d="M10 18H3" - /> - <path - d="M21 6v10a2 2 0 0 1-2 2h-5" - /> - <path - d="m16 16-2 2 2 2" - /> - </svg> - </span> - </span> - <span> - 返回底部 - </span> - </button> <div> <div class="layoutkit-flexbox css-19iopuf acss-1ckeg12 ant-pro-chat-input-area" > <div ❯ tests/demo.tsx:37:40
test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/