Skip to content

PR #4638

PR #4638 #3414

Triggered via dynamic December 12, 2024 16:11
Status Success
Total duration 2m 23s
Artifacts

codeql

on: dynamic
Matrix: analyze
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
useCompatibleNetworks > should set everything to available except zkSync and GnosisChain Chiado for 1.4.1 Safes: src/features/multichain/hooks/__tests__/useCompatibleNetworks.test.ts#L72
Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ true, true, true, false, - true, + false, false, ] at Object.toEqual (/home/runner/work/safe-wallet-web/safe-wallet-web/src/features/multichain/hooks/__tests__/useCompatibleNetworks.test.ts:94:62) at Promise.then.completed (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-runner/build/testWorker.js:106:12)
useCompatibleNetworks > should mark compatible chains as available: src/features/multichain/hooks/__tests__/useCompatibleNetworks.test.ts#L112
Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ true, true, true, false, - true, + false, false, ] at Object.toEqual (/home/runner/work/safe-wallet-web/safe-wallet-web/src/features/multichain/hooks/__tests__/useCompatibleNetworks.test.ts:136:62) at Promise.then.completed (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jest-runner/build/testWorker.js:106:12)
NetworkMultiSelector > should be possible to select and deselect networks: src/components/common/NetworkSelector/__tests__/NetworkMultiSelector.test.tsx#L63
Error: expect(element).toHaveAttribute("aria-disabled", "false") // element.getAttribute("aria-disabled") === "false" Expected the element to have attribute: aria-disabled="false" Received: aria-disabled="true" Ignored nodes: comments, script, style <html> <head /> <body> <div> <form> <div aria-owns=":r0:-listbox" class="MuiAutocomplete-root Mui-expanded Mui-focused MuiAutocomplete-hasClearIcon MuiAutocomplete-hasPopupIcon css-o5oj2-MuiAutocomplete-root" name="networks" > <div class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-cmpglg-MuiFormControl-root-MuiTextField-root" > <div class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth Mui-focused MuiInputBase-formControl MuiInputBase-adornedStart MuiInputBase-adornedEnd MuiAutocomplete-inputRoot css-1rx36jo-MuiInputBase-root-MuiOutlinedInput-root" > <div class="MuiButtonBase-root MuiChip-root MuiChip-outlined MuiChip-sizeMedium MuiChip-colorDefault MuiChip-deletable MuiChip-deletableColorDefault MuiChip-outlinedDefault multiChainChip css-13evlqv-MuiButtonBase-root-MuiChip-root" role="button" tabindex="0" > <span class="MuiChip-avatar MuiChip-avatarMedium MuiChip-avatarColorDefault inlineIndicator withLogo onlyLogo" data-testid="chain-logo" > <img alt="Ethereum Logo" height="24" loading="lazy" width="24" /> </span> <span class="MuiChip-label MuiChip-labelMedium css-1fh978c-MuiChip-label" > Ethereum </span> <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiChip-deleteIcon MuiChip-deleteIconMedium MuiChip-deleteIconColorDefault MuiChip-deleteIconOutlinedColorDefault css-1dhtbeh-MuiSvgIcon-root" data-testid="CancelIcon" focusable="false" viewBox="0 0 24 24" > <path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" /> </svg> </div> <input aria-activedescendant=":r0:-option-0" aria-autocomplete="list" aria-controls=":r0:-listbox" aria-expanded="true" aria-invalid="false" autocapitalize="none" autocomplete="off" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedStart MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-1pmlxf8-MuiInputBase-input-MuiOutlinedInput-input" id=":r0:" role="combobox" spellcheck="false" type="text" value="" /> <div class="MuiAutocomplete-endAdornment css-1uhhrmm-MuiAutocomplete-endAdornment" > <button aria-label="Clear" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium MuiAutocomplete-clearIndicator css-hsc0qk-MuiButtonBase-root-MuiIconButton-root-MuiAutocomplete-clearIndicator" tabindex="-1" title="Clear" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /> </svg> </button> <button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium MuiAutocomplete-popupIndicator MuiAutocomplete-popupIndicatorOpen css-17j1ki-MuiButtonBase-root-MuiIconButton-root-MuiAutocomplete-popupIndicator" tabindex="-1" title="Close" type="button" > <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1dhtbeh-MuiSvgIcon-root" data-testid="ArrowDropDownIcon" focusable="false" viewBox="0 0 24 24" > <path d="M7 10l5 5 5-5z" /> </svg> </button> </div> <fieldset aria-hidden="true" class="MuiOutlinedInput-notchedOutline css-1focg1t-MuiOutlinedInput-notchedOutline" > <legend class="css-w4cd9x" > <span class="notranslate" > ​ </span> </legend> </fieldset> </div> </div> </div> </form> </div> <div class="MuiPopper-root MuiAutocomplete-popper css-2xrgrn-MuiPopper-root-MuiAutocomplete-popper" data-popper-escaped="" data-popper-placement="bottom" data-popper-reference-hidden="" role="presentation" style="position: absolute; top: 0px; left: 0px; width: 0px; margin: 0px; transform: translate(0px, 0px);" > <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAutocomplete-paper css-9c4jum-MuiPaper-root-MuiAutocomplete-paper" style="--Paper-shadow: none;" > <div aria-labelledby=":r0:-label" class="MuiAutocomplete-listbox css-15s48wj-MuiAutocomplete-listbox" id=":r0:-listbox" role="listbox" > <li aria-disabled="false" aria-selected="true" class="MuiAutocomplete-option Mui-focused" data-option-index="0" id=":r0:-option-0" role="option" tabindex="-1" > <span class="MuiButtonBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall PrivateSwitchBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall Mui-checked MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall css-a4ywlg-MuiButtonBase-root-MuiCheckbox-root" data-testid="network-checkbox" > <input class="PrivateSwitchBase-input css-j8yymo" data-indeterminate="false" type="checkbox" /> <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root" data-testid="CheckBoxIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" /> </svg> </span> <span class="inlineIndicator withLogo" data-testid="chain-logo" > <img alt="Ethereum Logo" height="24" loading="lazy" width="24" /> <div class="MuiStack-root css-nen11g-MuiStack-root" > <span class="name" > Ethereum </span> </div> </span> </li> <li aria-disabled="false" aria-selected="false" class="MuiAutocomplete-option" data-option-index="1" id=":r0:-option-1" role="option" tabindex="-1" > <span class="MuiButtonBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall PrivateSwitchBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall css-a4ywlg-MuiButtonBase-root-MuiCheckbox-root" data-testid="network-checkbox" > <input class="PrivateSwitchBase-input css-j8yymo" data-indeterminate="false" type="checkbox" /> <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root" data-testid="CheckBoxOutlineBlankIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /> </svg> </span> <span class="inlineIndicator withLogo" data-testid="chain-logo" > <img alt="Optimism Logo" height="24" loading="lazy" width="24" /> <div class="MuiStack-root css-nen11g-MuiStack-root" > <span class="name" > Optimism </span> </div> </span> </li> <li aria-disabled="false" aria-selected="false" class="MuiAutocomplete-option" data-option-index="2" id=":r0:-option-2" role="option" tabindex="-1" > <span class="MuiButtonBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall PrivateSwitchBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall css-a4ywlg-MuiButtonBase-root-MuiCheckbox-root" data-testid="network-checkbox" > <input class="PrivateSwitchBase-input css-j8yymo" data-indeterminate="false" type="checkbox" /> <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root" data-testid="CheckBoxOutlineBlankIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /> </svg> </span> <span class="inlineIndicator withLogo" data-testid="chain-logo" > <img alt="Gnosis Chain Logo" height="24" loading="lazy" width="24" /> <div class="MuiStack-root css-nen11g-MuiStack-root" > <span class="name" > Gnosis Chain </span> </div> </span> </li> <li aria-disabled="true" aria-selected="false" class="MuiAutocomplete-option" data-option-index="3" id=":r0:-option-3" role="option" tabindex="-1" > <span class="MuiButtonBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall PrivateSwitchBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall css-a4ywlg-MuiButtonBase-root-MuiCheckbox-root" data-testid="network-checkbox" > <input class="PrivateSwitchBase-input css-j8yymo" data-indeterminate="false" type="checkbox" /> <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root" data-testid="CheckBoxOutlineBlankIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /> </svg> </span> <span class="inlineIndicator withLogo" data-testid="chain-logo" > <img alt="ZkSync Era Logo" height="24" loading="lazy" width="24" /> <div class="MuiStack-root css-nen11g-MuiStack-root" > <span class="name" > ZkSync Era </span> </div> </span> </li> <li aria-disabled="true" aria-selected="false" class="MuiAutocomplete-option" data-option-index="4" id=":r0:-option-4" role="option" tabindex="-1" > <span class="MuiButtonBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall PrivateSwitchBase-root MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall MuiCheckbox-root MuiCheckbox-colorPrimary MuiCheckbox-sizeSmall css-a4ywlg-MuiButtonBase-root-MuiCheckbox-root" data-testid="network-checkbox" > <input class="PrivateSwitchBase-input css-j8yymo" data-indeterminate="false" type="checkbox" /> <svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root" data-testid="CheckBoxOutlineBlankIcon" focusable="false" viewBox="0 0 24 24" > <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /> </svg> </span> <span class="inlineIndicator withLogo" data-testid="chain-logo" > <img alt="Worldchain Logo" height="24" loading="lazy" width="24" /> <div class="MuiStack-root css-nen11g-MuiStack-root" > <span class="name" > Worldchain </span> </div> </span> </li> </div> </div> </div> </body> </html> at toHaveAttribute (/home/runner/work/safe-wallet-web/safe-wallet-web/src/components/common/NetworkSelector/__tests__/NetworkMultiSelector.test.tsx:105:29) at runWithExpensiveErrorDiagnosticsDisabled (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/@testing-library/dom/dist/config.js:47:12) at checkCallback (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/@testing-library/dom/dist/wait-for.js:124:77) at checkRealTimersCallback (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/@testing-library/dom/dist/wait-for.js:118:16) at Timeout.task [as _onTimeout] (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19) at listOnTimeout (node:internal/timers:581:17) at processTimers (node:internal/timers:519:7)
Analyze (javascript)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636