Skip to content

Astar stg

Astar stg #1

Triggered via pull request September 5, 2024 09:43
Status Success
Total duration 6m 9s
Artifacts 2

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
useChainId hook > should return the default chainId if no query params: src/hooks/__tests__/useChainId.test.ts#L57
Error: expect(received).toBe(expected) // Object.is equality Expected: "11155111" Received: "592" at Object.toBe (/home/runner/work/safe-web-core/safe-web-core/src/hooks/__tests__/useChainId.test.ts:59:28) at Promise.then.completed (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/testWorker.js:106:12)
SettingsHeader > A safe is open > displays Notifications if feature is enabled: src/components/settings/SettingsHeader/index.test.tsx#L27
TestingLibraryElementError: Unable to find an element with the text: Notifications. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="container border MuiBox-root css-0" > <h3 class="MuiTypography-root MuiTypography-h3 title css-aklxrh-MuiTypography-root" > Settings </h3> <div class="navWrapper" > <div class="MuiTabs-root tabs css-tkn350-MuiTabs-root" > <div class="MuiTabs-scrollableX MuiTabs-hideScrollbar css-oqr85h" style="width: 99px; height: 99px; position: absolute; top: -9999px; overflow: scroll;" /> <div class="MuiTabs-scroller MuiTabs-hideScrollbar MuiTabs-scrollableX css-69z67c-MuiTabs-scroller" style="margin-bottom: 0px;" > <div class="MuiTabs-flexContainer css-heg063-MuiTabs-flexContainer" role="tablist" > <a aria-selected="true" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/setup" role="tab" tabindex="0" > <p class="MuiTypography-root MuiTypography-body2 label css-11hvqlg-MuiTypography-root" > Setup </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/appearance" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Appearance </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/security" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Security </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/modules" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Modules </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/safe-apps" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Safe Apps </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/data" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Data </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/environment-variables" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Environment variables </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> </div> <span class="MuiTabs-indicator css-1n74ku9-MuiTabs-indicator" style="left: 0px; width: 0px;" /> </div> </div> </div> </div> </div> </body> at Object.getElementError (/home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/config.js:37:19) at /home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/query-helpers.js:76:38 at /home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/query-helpers.js:52:17 at /home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 at Object.getByText (/home/runner/work/safe-web-core/safe-web-core/src/components/settings/SettingsHeader/index.test.tsx:38:21) at Promise.then.completed (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/testWorker.js:106:12)
SettingsHeader > No safe is open > displays Notifications if feature is enabled: src/components/settings/SettingsHeader/index.test.tsx#L57
TestingLibraryElementError: Unable to find an element with the text: Notifications. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body> <div> <div class="container border MuiBox-root css-0" > <h3 class="MuiTypography-root MuiTypography-h3 title css-aklxrh-MuiTypography-root" > Preferences </h3> <div class="navWrapper" > <div class="MuiTabs-root tabs css-tkn350-MuiTabs-root" > <div class="MuiTabs-scrollableX MuiTabs-hideScrollbar css-oqr85h" style="width: 99px; height: 99px; position: absolute; top: -9999px; overflow: scroll;" /> <div class="MuiTabs-scroller MuiTabs-hideScrollbar MuiTabs-scrollableX css-69z67c-MuiTabs-scroller" style="margin-bottom: 0px;" > <div class="MuiTabs-flexContainer css-heg063-MuiTabs-flexContainer" role="tablist" > <a aria-selected="true" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/cookies" role="tab" tabindex="0" > <p class="MuiTypography-root MuiTypography-body2 label css-11hvqlg-MuiTypography-root" > Cookies </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/appearance" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Appearance </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/security" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Security </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/data" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Data </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> <a aria-selected="false" class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary tab css-1lj962s-MuiButtonBase-root-MuiTab-root" href="/settings/environment-variables" role="tab" tabindex="-1" > <p class="MuiTypography-root MuiTypography-body2 label css-fvh28f-MuiTypography-root" > Environment variables </p> <span class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" /> </a> </div> <span class="MuiTabs-indicator css-1n74ku9-MuiTabs-indicator" style="left: 0px; width: 0px;" /> </div> </div> </div> </div> </div> </body> at Object.getElementError (/home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/config.js:37:19) at /home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/query-helpers.js:76:38 at /home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/query-helpers.js:52:17 at /home/runner/work/safe-web-core/safe-web-core/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 at Object.getByText (/home/runner/work/safe-web-core/safe-web-core/src/components/settings/SettingsHeader/index.test.tsx:68:21) at Promise.then.completed (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/safe-web-core/safe-web-core/node_modules/jest-runner/build/testWorker.js:106:12)
eslint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "eslint-v8-cache-key-state-Lint", "eslint-v8-cache-key-state-Lint-1". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
eslint-v8-cache-key-state-Lint Expired
84 Bytes
eslint-v8-cache-key-state-Lint-1 Expired
41 Bytes