Skip to content

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

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

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

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Nov 28, 2023 in 0s

Test suite run failed

Failed tests: 2/943. Failed suites: 2/278.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● Order/Create › should audit sql when user click audit button

    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"
                                                />

      198 |     await act(async () => jest.advanceTimersByTime(3000));
      199 |
    > 200 |     expect(container).toMatchSnapshot();
          |                       ^
      201 |
      202 |     //different
      203 |     fireEvent.click(screen.getByLabelText('order.sqlInfo.isSameSqlOrder'));

      at Object.<anonymous> (src/page/Order/Create/index.test.tsx:200:23)


  ● Order/Detail › should update order when click update order button

    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"
                                                    />

      476 |     await act(async () => jest.advanceTimersByTime(3000));
      477 |
    > 478 |     expect(container).toMatchSnapshot();
          |                       ^
      479 |     expect(screen.getByText('order.modifySql.updateOrder')).toBeInTheDocument();
      480 |     expect(
      481 |       screen.getByText('order.modifySql.giveUpUpdate')

      at Object.<anonymous> (src/page/Order/Detail/index.test.tsx:478:23)

Annotations

Check failure on line 131 in src/page/Order/Create/index.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Order/Create > should audit sql when user click audit button

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)

Check failure on line 452 in src/page/Order/Detail/index.test.tsx

See this annotation in the file changed.

@github-actions github-actions / Tests annotations (🧪 jest-coverage-report-action)

Order/Detail > should update order when click update order button

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)