Skip to content

[fix](AuditResultInfo): fix passed result box style #455

[fix](AuditResultInfo): fix passed result box style

[fix](AuditResultInfo): fix passed result box style #455

Triggered via pull request November 28, 2023 07:54
Status Failure
Total duration 8m 49s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors
test AuditResultCollection > should be show overview tab when showOverview is equal true: src/page/Order/AuditResult/__test__/AuditResultCollection.test.tsx#L195
Error: expect(received).toMatchSnapshot() Snapshot name: `test AuditResultCollection should be show overview tab when showOverview is equal true 1` - Snapshot - 24 + Received + 31 @@ -998,37 +998,44 @@ </td> <td class="ant-table-cell" > <div - class="result-box result-box-passed" + class="flex-space-between" > - <span - aria-label="audit" - class="anticon anticon-audit" - role="img" - style="font-size: 14px;" + <div + class="result-box result-box-passed" > - <svg - aria-hidden="true" - data-icon="audit" - fill="currentColor" - focusable="false" - height="1em" - viewBox="64 64 896 896" - width="1em" + <span + aria-label="audit" + class="anticon anticon-audit" + role="img" + style="font-size: 14px;" + > + <svg + aria-hidden="true" + data-icon="audit" + fill="currentColor" + focusable="false" + height="1em" + viewBox="64 64 896 896" + width="1em" + > + <path + d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" + /> + </svg> + </span> + <span + class="result-box-level" > - <path - d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" - /> - </svg> - </span> - <span - class="result-box-level" - > - passed - </span> + passed + </span> + <span> +    + </span> + </div> </div> </td> <td class="ant-table-cell ant-table-row-expand-icon-cell" /> at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/AuditResult/__test__/AuditResultCollection.test.tsx:213:23)
test AuditResultCollection > should match snapshot when getSummaryOfInstanceTasks status was failed: src/page/Order/AuditResult/__test__/AuditResultCollection.test.tsx#L240
Error: expect(received).toMatchSnapshot() Snapshot name: `test AuditResultCollection should match snapshot when getSummaryOfInstanceTasks status was failed 1` - Snapshot - 24 + Received + 31 @@ -998,37 +998,44 @@ </td> <td class="ant-table-cell" > <div - class="result-box result-box-passed" + class="flex-space-between" > - <span - aria-label="audit" - class="anticon anticon-audit" - role="img" - style="font-size: 14px;" + <div + class="result-box result-box-passed" > - <svg - aria-hidden="true" - data-icon="audit" - fill="currentColor" - focusable="false" - height="1em" - viewBox="64 64 896 896" - width="1em" + <span + aria-label="audit" + class="anticon anticon-audit" + role="img" + style="font-size: 14px;" + > + <svg + aria-hidden="true" + data-icon="audit" + fill="currentColor" + focusable="false" + height="1em" + viewBox="64 64 896 896" + width="1em" + > + <path + d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" + /> + </svg> + </span> + <span + class="result-box-level" > - <path - d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" - /> - </svg> - </span> - <span - class="result-box-level" - > - passed - </span> + passed + </span> + <span> +    + </span> + </div> </div> </td> <td class="ant-table-cell ant-table-row-expand-icon-cell" /> at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/AuditResult/__test__/AuditResultCollection.test.tsx:256:23)
Order/Create > should audit sql when user click audit button: src/page/Order/Create/index.test.tsx#L131
Error: expect(received).toMatchSnapshot() Snapshot name: `Order/Create should audit sql when user click audit button 1` - Snapshot - 24 + Received + 31 @@ -1815,37 +1815,44 @@ </td> <td class="ant-table-cell" > <div - class="result-box result-box-passed" + class="flex-space-between" > - <span - aria-label="audit" - class="anticon anticon-audit" - role="img" - style="font-size: 14px;" + <div + class="result-box result-box-passed" > - <svg - aria-hidden="true" - data-icon="audit" - fill="currentColor" - focusable="false" - height="1em" - viewBox="64 64 896 896" - width="1em" + <span + aria-label="audit" + class="anticon anticon-audit" + role="img" + style="font-size: 14px;" + > + <svg + aria-hidden="true" + data-icon="audit" + fill="currentColor" + focusable="false" + height="1em" + viewBox="64 64 896 896" + width="1em" + > + <path + d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" + /> + </svg> + </span> + <span + class="result-box-level" > - <path - d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" - /> - </svg> - </span> - <span - class="result-box-level" - > - passed - </span> + passed + </span> + <span> +    + </span> + </div> </div> </td> <td class="ant-table-cell ant-table-row-expand-icon-cell" /> at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/Create/index.test.tsx:200:23)
Order/Detail > should update order when click update order button: src/page/Order/Detail/index.test.tsx#L452
Error: expect(received).toMatchSnapshot() Snapshot name: `Order/Detail should update order when click update order button 1` - Snapshot - 24 + Received + 31 @@ -1864,37 +1864,44 @@ </td> <td class="ant-table-cell" > <div - class="result-box result-box-passed" + class="flex-space-between" > - <span - aria-label="audit" - class="anticon anticon-audit" - role="img" - style="font-size: 14px;" + <div + class="result-box result-box-passed" > - <svg - aria-hidden="true" - data-icon="audit" - fill="currentColor" - focusable="false" - height="1em" - viewBox="64 64 896 896" - width="1em" + <span + aria-label="audit" + class="anticon anticon-audit" + role="img" + style="font-size: 14px;" + > + <svg + aria-hidden="true" + data-icon="audit" + fill="currentColor" + focusable="false" + height="1em" + viewBox="64 64 896 896" + width="1em" + > + <path + d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" + /> + </svg> + </span> + <span + class="result-box-level" > - <path - d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" - /> - </svg> - </span> - <span - class="result-box-level" - > - passed - </span> + passed + </span> + <span> +    + </span> + </div> </div> </td> <td class="ant-table-cell ant-table-row-expand-icon-cell" /> at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/Detail/index.test.tsx:478:23)
Order/Detail/AuditResult > should get task sql info when pass task id into component props: src/page/Order/AuditResult/__test__/index.test.tsx#L41
Error: expect(received).toMatchSnapshot() Snapshot name: `Order/Detail/AuditResult should get task sql info when pass task id into component props 2` - Snapshot - 24 + Received + 31 @@ -874,37 +874,44 @@ </td> <td class="ant-table-cell" > <div - class="result-box result-box-passed" + class="flex-space-between" > - <span - aria-label="audit" - class="anticon anticon-audit" - role="img" - style="font-size: 14px;" + <div + class="result-box result-box-passed" > - <svg - aria-hidden="true" - data-icon="audit" - fill="currentColor" - focusable="false" - height="1em" - viewBox="64 64 896 896" - width="1em" + <span + aria-label="audit" + class="anticon anticon-audit" + role="img" + style="font-size: 14px;" + > + <svg + aria-hidden="true" + data-icon="audit" + fill="currentColor" + focusable="false" + height="1em" + viewBox="64 64 896 896" + width="1em" + > + <path + d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" + /> + </svg> + </span> + <span + class="result-box-level" > - <path - d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z" - /> - </svg> - </span> - <span - class="result-box-level" - > - passed - </span> + passed + </span> + <span> +    + </span> + </div> </div> </td> <td class="ant-table-cell ant-table-row-expand-icon-cell" /> at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/AuditResult/__test__/index.test.tsx:73:23)
Order/AuditResult/AuditResultInfo > should render passed when there is no audit result: src/page/Order/AuditResult/__test__/AuditResultInfo.test.tsx#L78
Error: expect(received).toMatchSnapshot() Snapshot name: `Order/AuditResult/AuditResultInfo should render passed when there is no audit result 1` - Snapshot - 0 + Received + 7 @@ -1,7 +1,10 @@ <div> <div + class="flex-space-between" + > + <div class="result-box result-box-passed" > <span aria-label="audit" class="anticon anticon-audit" @@ -25,7 +28,11 @@ <span class="result-box-level" > passed </span> + <span> +    + </span> + </div> </div> </div> at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/page/Order/AuditResult/__test__/AuditResultInfo.test.tsx:80:23) at Promise.then.completed (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:391:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/utils.js:316:10) at _callCircusTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:218:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:155:3) at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:66:9) at _runTestsForDescribeBlock (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:60:9) at run (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/run.js:25:3) at runAndTransformResultsToJestFormat (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:170:21) at jestAdapter (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:82:19) at runTestInternal (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:389:16) at runTest (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/runTest.js:475:34) at Object.worker (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-runner/build/testWorker.js:133:12)
test-coverage
Error: The process '/usr/local/bin/yarn' failed with exit code 1 Error: The process '/usr/local/bin/yarn' failed with exit code 1 at rh._setResult (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2/dist/index.js:21:17898) at rh.CheckComplete (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2/dist/index.js:21:17485) at ChildProcess.<anonymous> (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2/dist/index.js:21:16477) at ChildProcess.emit (node:events:517:28) at maybeClose (node:internal/child_process:1098:16) at ChildProcess._handle.onexit (node:internal/child_process:303:5)
test-coverage
Jest coverage report action failed
test-coverage
Process completed with exit code 1.