Skip to content

[feature]: Support publish company notice #429

[feature]: Support publish company notice

[feature]: Support publish company notice #429

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

Test suite run failed

Failed tests: 5/943. Failed suites: 4/278.

Details

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

  ● App test › should get user info when token is not empty

    expect(jest.fn()).toBeCalledWith(...expected)

    Expected: {"payload": {"modalStatus": {"SHOW_VERSION": false}}, "type": "nav/initModalStatus"}
    Received
           1
              Object {
                "payload": Object {
                  "modalStatus": Object {
            +       "Company_Notice": false,
                    "SHOW_VERSION": false,
                  },
                },
                "type": "nav/initModalStatus",
              },
           2
              Object {
                "payload": Object {
            -     "modalStatus": Object {
            -       "SHOW_VERSION": false,
            -     },
            +     "webLogoUrl": "test",
            +     "webTitle": "SQLE",
                },
            -   "type": "nav/initModalStatus",
            +   "type": "system/updateWebTitleAndLog",
              },
           3
              Object {
                "payload": Object {
            -     "modalStatus": Object {
            -       "SHOW_VERSION": false,
            -     },
            +     "bindProjects": Array [],
                },
            -   "type": "nav/initModalStatus",
            +   "type": "user/updateBindProjects",
              },

    Number of calls: 6

      245 |
      246 |     expect(scopeDispatch).toBeCalledTimes(6);
    > 247 |     expect(scopeDispatch).toBeCalledWith({
          |                           ^
      248 |       payload: {
      249 |         modalStatus: {
      250 |           SHOW_VERSION: false,

      at Object.<anonymous> (src/App.test.tsx:247:27)


  ● Nav › should render page by props of username

    expect(received).toMatchSnapshot()

    Snapshot name: `Nav should render page by props of username 1`

    - Snapshot  -  0
    + Received  + 25

    @@ -185,10 +185,35 @@
                  class="ant-space ant-space-horizontal ant-space-align-center"
                >
                  <div
                    class="ant-space-item"
                    style="margin-right: 8px;"
    +             >
    +               <span
    +                 aria-label="notification"
    +                 class="anticon anticon-notification header-notification-icon"
    +                 role="img"
    +                 tabindex="-1"
    +               >
    +                 <svg
    +                   aria-hidden="true"
    +                   data-icon="notification"
    +                   fill="currentColor"
    +                   focusable="false"
    +                   height="1em"
    +                   viewBox="64 64 896 896"
    +                   width="1em"
    +                 >
    +                   <path
    +                     d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"
    +                   />
    +                 </svg>
    +               </span>
    +             </div>
    +             <div
    +               class="ant-space-item"
    +               style="margin-right: 8px;"
                  />
                  <div
                    class="ant-space-item"
                    style="margin-right: 8px;"
                  >

      45 |       jest.advanceTimersByTime(0);
      46 |     });
    > 47 |     expect(container).toMatchSnapshot();
         |                       ^
      48 |
      49 |     (useSelector as jest.Mock).mockImplementation((e) =>
      50 |       e({

      at Object.<anonymous> (src/components/Nav/index.test.tsx:47:23)

  ● Nav › should render page by props of username

    expect(received).toMatchSnapshot()

    Snapshot name: `Nav should render page by props of username 2`

    - Snapshot  -  0
    + Received  + 25

    @@ -185,10 +185,35 @@
                  class="ant-space ant-space-horizontal ant-space-align-center"
                >
                  <div
                    class="ant-space-item"
                    style="margin-right: 8px;"
    +             >
    +               <span
    +                 aria-label="notification"
    +                 class="anticon anticon-notification header-notification-icon"
    +                 role="img"
    +                 tabindex="-1"
    +               >
    +                 <svg
    +                   aria-hidden="true"
    +                   data-icon="notification"
    +                   fill="currentColor"
    +                   focusable="false"
    +                   height="1em"
    +                   viewBox="64 64 896 896"
    +                   width="1em"
    +                 >
    +                   <path
    +                     d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"
    +                   />
    +                 </svg>
    +               </span>
    +             </div>
    +             <div
    +               class="ant-space-item"
    +               style="margin-right: 8px;"
                  />
                  <div
                    class="ant-space-item"
                    style="margin-right: 8px;"
                  >

      61 |       jest.advanceTimersByTime(0);
      62 |     });
    > 63 |     expect(notShowContainer).toMatchSnapshot();
         |                              ^
      64 |   });
      65 | });
      66 |

      at Object.<anonymous> (src/components/Nav/index.test.tsx:63:30)


  ● test Nav/Header/Modal › should match snapshot

    TypeError: Cannot read properties of undefined (reading 'username')

       7 |     (state: IReduxState) => {
       8 |       return {
    >  9 |         username: state.user.username,
         |                              ^
      10 |         role: state.user.role,
      11 |         bindProjects: state.user.bindProjects,
      12 |         managementPermissions: state.user.managementPermissions,

      at e (src/hooks/useCurrentUser/index.ts:9:30)
      at src/components/Nav/Header/Modal/index.test.tsx:34:7
      at useCurrentUser (src/hooks/useCurrentUser/index.ts:6:78)
      at CompanyNoticeModal (src/components/Nav/Header/Modal/CompanyNoticeModal/index.tsx:35:37)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (node_modules/react-dom/cjs/react-dom.development.js:21587:16)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27426:14)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/Nav/Header/Modal/index.test.tsx:49:35)

  ● test Nav/Header/Modal › should init modal status when the modal was first rendered

    TypeError: Cannot read properties of undefined (reading 'username')

       7 |     (state: IReduxState) => {
       8 |       return {
    >  9 |         username: state.user.username,
         |                              ^
      10 |         role: state.user.role,
      11 |         bindProjects: state.user.bindProjects,
      12 |         managementPermissions: state.user.managementPermissions,

      at e (src/hooks/useCurrentUser/index.ts:9:30)
      at src/components/Nav/Header/Modal/index.test.tsx:34:7
      at useCurrentUser (src/hooks/useCurrentUser/index.ts:6:78)
      at CompanyNoticeModal (src/components/Nav/Header/Modal/CompanyNoticeModal/index.tsx:35:37)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (node_modules/react-dom/cjs/react-dom.development.js:21587:16)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27426:14)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:63:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
      at render (node_modules/@testing-library/react/dist/pure.js:246:10)
      at Object.<anonymous> (src/components/Nav/Header/Modal/index.test.tsx:58:11)


  ● Header › should match snapshot

    expect(received).toMatchSnapshot()

    Snapshot name: `Header should match snapshot 1`

    - Snapshot  -  0
    + Received  + 25

    @@ -177,10 +177,35 @@
              class="ant-space ant-space-horizontal ant-space-align-center"
            >
              <div
                class="ant-space-item"
                style="margin-right: 8px;"
    +         >
    +           <span
    +             aria-label="notification"
    +             class="anticon anticon-notification header-notification-icon"
    +             role="img"
    +             tabindex="-1"
    +           >
    +             <svg
    +               aria-hidden="true"
    +               data-icon="notification"
    +               fill="currentColor"
    +               focusable="false"
    +               height="1em"
    +               viewBox="64 64 896 896"
    +               width="1em"
    +             >
    +               <path
    +                 d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"
    +               />
    +             </svg>
    +           </span>
    +         </div>
    +         <div
    +           class="ant-space-item"
    +           style="margin-right: 8px;"
              />
              <div
                class="ant-space-item"
                style="margin-right: 8px;"
              >

      42 |     const { baseElement } = renderWithThemeAndRouter(<Header />);
      43 |
    > 44 |     expect(baseElement).toMatchSnapshot();
         |                         ^
      45 |   });
      46 | });
      47 |

      at Object.<anonymous> (src/components/Nav/Header/index.test.tsx:44:25)

Annotations

Check failure on line 184 in src/App.test.tsx

See this annotation in the file changed.

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

App test > should get user info when token is not empty

Error: expect(jest.fn()).toBeCalledWith(...expected)

Expected: {"payload": {"modalStatus": {"SHOW_VERSION": false}}, "type": "nav/initModalStatus"}
Received
       1
          Object {
            "payload": Object {
              "modalStatus": Object {
        +       "Company_Notice": false,
                "SHOW_VERSION": false,
              },
            },
            "type": "nav/initModalStatus",
          },
       2
          Object {
            "payload": Object {
        -     "modalStatus": Object {
        -       "SHOW_VERSION": false,
        -     },
        +     "webLogoUrl": "test",
        +     "webTitle": "SQLE",
            },
        -   "type": "nav/initModalStatus",
        +   "type": "system/updateWebTitleAndLog",
          },
       3
          Object {
            "payload": Object {
        -     "modalStatus": Object {
        -       "SHOW_VERSION": false,
        -     },
        +     "bindProjects": Array [],
            },
        -   "type": "nav/initModalStatus",
        +   "type": "user/updateBindProjects",
          },

Number of calls: 6
    at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/App.test.tsx:247:27)

Check failure on line 42 in src/components/Nav/index.test.tsx

See this annotation in the file changed.

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

Nav > should render page by props of username

Error: expect(received).toMatchSnapshot()

Snapshot name: `Nav should render page by props of username 1`

- Snapshot  -  0
+ Received  + 25

@@ -185,10 +185,35 @@
              class="ant-space ant-space-horizontal ant-space-align-center"
            >
              <div
                class="ant-space-item"
                style="margin-right: 8px;"
+             >
+               <span
+                 aria-label="notification"
+                 class="anticon anticon-notification header-notification-icon"
+                 role="img"
+                 tabindex="-1"
+               >
+                 <svg
+                   aria-hidden="true"
+                   data-icon="notification"
+                   fill="currentColor"
+                   focusable="false"
+                   height="1em"
+                   viewBox="64 64 896 896"
+                   width="1em"
+                 >
+                   <path
+                     d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"
+                   />
+                 </svg>
+               </span>
+             </div>
+             <div
+               class="ant-space-item"
+               style="margin-right: 8px;"
              />
              <div
                class="ant-space-item"
                style="margin-right: 8px;"
              >
    at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/index.test.tsx:47:23)

Error: expect(received).toMatchSnapshot()

Snapshot name: `Nav should render page by props of username 2`

- Snapshot  -  0
+ Received  + 25

@@ -185,10 +185,35 @@
              class="ant-space ant-space-horizontal ant-space-align-center"
            >
              <div
                class="ant-space-item"
                style="margin-right: 8px;"
+             >
+               <span
+                 aria-label="notification"
+                 class="anticon anticon-notification header-notification-icon"
+                 role="img"
+                 tabindex="-1"
+               >
+                 <svg
+                   aria-hidden="true"
+                   data-icon="notification"
+                   fill="currentColor"
+                   focusable="false"
+                   height="1em"
+                   viewBox="64 64 896 896"
+                   width="1em"
+                 >
+                   <path
+                     d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"
+                   />
+                 </svg>
+               </span>
+             </div>
+             <div
+               class="ant-space-item"
+               style="margin-right: 8px;"
              />
              <div
                class="ant-space-item"
                style="margin-right: 8px;"
              >
    at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/index.test.tsx:63:30)

Check failure on line 48 in src/components/Nav/Header/Modal/index.test.tsx

See this annotation in the file changed.

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

test Nav/Header/Modal > should match snapshot

TypeError: Cannot read properties of undefined (reading 'username')
    at e (/home/runner/work/sqle-ui/sqle-ui/src/hooks/useCurrentUser/index.ts:9:30)
    at /home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/Modal/index.test.tsx:34:7
    at /home/runner/work/sqle-ui/sqle-ui/node_modules/jest-mock/build/index.js:449:39
    at /home/runner/work/sqle-ui/sqle-ui/node_modules/jest-mock/build/index.js:457:13
    at mockConstructor (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-mock/build/index.js:170:19)
    at useCurrentUser (/home/runner/work/sqle-ui/sqle-ui/src/hooks/useCurrentUser/index.ts:6:78)
    at CompanyNoticeModal (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/Modal/CompanyNoticeModal/index.tsx:35:37)
    at renderWithHooks (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
    at mountIndeterminateComponent (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
    at beginWork (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
    at beginWork$1 (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
    at performUnitOfWork (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (/home/runner/work/sqle-ui/sqle-ui/node_modules/react/cjs/react.development.js:2667:24)
    at act (/home/runner/work/sqle-ui/sqle-ui/node_modules/react/cjs/react.development.js:2582:11)
    at /home/runner/work/sqle-ui/sqle-ui/node_modules/@testing-library/react/dist/act-compat.js:63:25
    at renderRoot (/home/runner/work/sqle-ui/sqle-ui/node_modules/@testing-library/react/dist/pure.js:159:26)
    at render (/home/runner/work/sqle-ui/sqle-ui/node_modules/@testing-library/react/dist/pure.js:246:10)
    at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/Modal/index.test.tsx:49:35)
    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 _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)

Check failure on line 56 in src/components/Nav/Header/Modal/index.test.tsx

See this annotation in the file changed.

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

test Nav/Header/Modal > should init modal status when the modal was first rendered

TypeError: Cannot read properties of undefined (reading 'username')
    at e (/home/runner/work/sqle-ui/sqle-ui/src/hooks/useCurrentUser/index.ts:9:30)
    at /home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/Modal/index.test.tsx:34:7
    at /home/runner/work/sqle-ui/sqle-ui/node_modules/jest-mock/build/index.js:449:39
    at /home/runner/work/sqle-ui/sqle-ui/node_modules/jest-mock/build/index.js:457:13
    at mockConstructor (/home/runner/work/sqle-ui/sqle-ui/node_modules/jest-mock/build/index.js:170:19)
    at useCurrentUser (/home/runner/work/sqle-ui/sqle-ui/src/hooks/useCurrentUser/index.ts:6:78)
    at CompanyNoticeModal (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/Modal/CompanyNoticeModal/index.tsx:35:37)
    at renderWithHooks (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
    at mountIndeterminateComponent (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
    at beginWork (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
    at beginWork$1 (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
    at performUnitOfWork (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
    at workLoopSync (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
    at renderRootSync (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
    at recoverFromConcurrentError (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (/home/runner/work/sqle-ui/sqle-ui/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
    at flushActQueue (/home/runner/work/sqle-ui/sqle-ui/node_modules/react/cjs/react.development.js:2667:24)
    at act (/home/runner/work/sqle-ui/sqle-ui/node_modules/react/cjs/react.development.js:2582:11)
    at /home/runner/work/sqle-ui/sqle-ui/node_modules/@testing-library/react/dist/act-compat.js:63:25
    at renderRoot (/home/runner/work/sqle-ui/sqle-ui/node_modules/@testing-library/react/dist/pure.js:159:26)
    at render (/home/runner/work/sqle-ui/sqle-ui/node_modules/@testing-library/react/dist/pure.js:246:10)
    at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/Modal/index.test.tsx:58:11)
    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 _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)

Check failure on line 41 in src/components/Nav/Header/index.test.tsx

See this annotation in the file changed.

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

Header > should match snapshot

Error: expect(received).toMatchSnapshot()

Snapshot name: `Header should match snapshot 1`

- Snapshot  -  0
+ Received  + 25

@@ -177,10 +177,35 @@
          class="ant-space ant-space-horizontal ant-space-align-center"
        >
          <div
            class="ant-space-item"
            style="margin-right: 8px;"
+         >
+           <span
+             aria-label="notification"
+             class="anticon anticon-notification header-notification-icon"
+             role="img"
+             tabindex="-1"
+           >
+             <svg
+               aria-hidden="true"
+               data-icon="notification"
+               fill="currentColor"
+               focusable="false"
+               height="1em"
+               viewBox="64 64 896 896"
+               width="1em"
+             >
+               <path
+                 d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z"
+               />
+             </svg>
+           </span>
+         </div>
+         <div
+           class="ant-space-item"
+           style="margin-right: 8px;"
          />
          <div
            class="ant-space-item"
            style="margin-right: 8px;"
          >
    at Object.<anonymous> (/home/runner/work/sqle-ui/sqle-ui/src/components/Nav/Header/index.test.tsx:44:25)
    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 _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)