Skip to content

[feature]: Support publish company notice #429

[feature]: Support publish company notice

[feature]: Support publish company notice #429

Triggered via pull request November 3, 2023 06:09
Status Failure
Total duration 21m 57s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 49 warnings
App test > should get user info when token is not empty: src/App.test.tsx#L184
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)
Nav > should render page by props of username: src/components/Nav/index.test.tsx#L42
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)
test Nav/Header/Modal > should match snapshot: src/components/Nav/Header/Modal/index.test.tsx#L48
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)
test Nav/Header/Modal > should init modal status when the modal was first rendered: src/components/Nav/Header/Modal/index.test.tsx#L56
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)
Header > should match snapshot: src/components/Nav/Header/index.test.tsx#L41
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)
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.