Skip to content

feat(safenet): Multi-recipient token transfers #16390

feat(safenet): Multi-recipient token transfers

feat(safenet): Multi-recipient token transfers #16390

GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Jan 21, 2025 in 0s

Test suite run failed

Failed tests: 3/1793. Failed suites: 2/242.

Details

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

  ● ConfirmationView › should display a confirmation screen for a SETTINGS_CHANGE transaction

    expect(received).toMatchSnapshot()

    Snapshot name: `ConfirmationView should display a confirmation screen for a SETTINGS_CHANGE transaction 1`

    - Snapshot  -  8
    + Received  + 12

    @@ -279,18 +279,22 @@
                              data-testid="tx-data-row"
                            >
                              <div
                                class="MuiBox-root css-axw7ok"
                              >
    -                           <img
    -                             alt="ETH"
    -                             class="image"
    -                             height="26"
    -                             loading="lazy"
    -                             referrerpolicy="no-referrer"
    -                             src="/images/common/token-placeholder.svg"
    -                           />
    +                           <div
    +                             class="container false"
    +                           >
    +                             <img
    +                               alt="ETH"
    +                               class="image"
    +                               height="26"
    +                               loading="lazy"
    +                               referrerpolicy="no-referrer"
    +                               src="/images/common/token-placeholder.svg"
    +                             />
    +                           </div>
                                <p
                                  class="MuiTypography-root MuiTypography-body1 css-w5uidf-MuiTypography-root"
                                >
                                  ETH
                                </p>

      116 |     )
      117 |
    > 118 |     expect(container).toMatchSnapshot()
          |                       ^
      119 |   })
      120 |
      121 |   it("should display a confirmation with method call when the transaction type is not found in the ConfirmationView's mapper", () => {

      at Object.toMatchSnapshot (src/components/tx/confirmation-views/ConfirmationView.test.tsx:118:23)

  ● ConfirmationView › should display a confirmation with method call when the transaction type is not found in the ConfirmationView's mapper

    expect(received).toMatchSnapshot()

    Snapshot name: `ConfirmationView should display a confirmation with method call when the transaction type is not found in the ConfirmationView's mapper 1`

    - Snapshot  -  8
    + Received  + 12

    @@ -168,18 +168,22 @@
                              data-testid="tx-data-row"
                            >
                              <div
                                class="MuiBox-root css-axw7ok"
                              >
    -                           <img
    -                             alt="ETH"
    -                             class="image"
    -                             height="26"
    -                             loading="lazy"
    -                             referrerpolicy="no-referrer"
    -                             src="/images/common/token-placeholder.svg"
    -                           />
    +                           <div
    +                             class="container false"
    +                           >
    +                             <img
    +                               alt="ETH"
    +                               class="image"
    +                               height="26"
    +                               loading="lazy"
    +                               referrerpolicy="no-referrer"
    +                               src="/images/common/token-placeholder.svg"
    +                             />
    +                           </div>
                                <p
                                  class="MuiTypography-root MuiTypography-body1 css-w5uidf-MuiTypography-root"
                                >
                                  ETH
                                </p>

      131 |     )
      132 |
    > 133 |     expect(container).toMatchSnapshot()
          |                       ^
      134 |   })
      135 | })
      136 |

      at Object.toMatchSnapshot (src/components/tx/confirmation-views/ConfirmationView.test.tsx:133:23)


  ● SignOrExecute › should display a confirmation screen

    expect(received).toMatchSnapshot()

    Snapshot name: `SignOrExecute should display a confirmation screen 1`

    - Snapshot  -  1
    + Received  + 70

    @@ -76,11 +76,80 @@
                          role="region"
                        >
                          <div
                            class="MuiAccordionDetails-root css-w74p4c-MuiAccordionDetails-root"
                            data-testid="decoded-tx-details"
    -                     />
    +                     >
    +                       <div
    +                         class="MuiBox-root css-164r41r"
    +                       >
    +                         <div
    +                           class="MuiGrid-root MuiGrid-container css-86qz5o-MuiGrid-root"
    +                         >
    +                           <div
    +                             class="MuiGrid-root MuiGrid-item css-1wehkfy-MuiGrid-root"
    +                             data-testid="tx-row-title"
    +                             style="word-break: break-word;"
    +                           >
    +                             <p
    +                               class="MuiTypography-root MuiTypography-body1 css-shf88x-MuiTypography-root"
    +                             >
    +                               Safenet checks:
    +                             </p>
    +                           </div>
    +                           <div
    +                             class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-true css-1vd824g-MuiGrid-root"
    +                             data-testid="tx-data-row"
    +                           >
    +                             <div
    +                               class="safenetGradientRow MuiBox-root css-0"
    +                               style="border-radius: calc(var(--space-1) - 1px); display: flex; align-items: stretch; flex-direction: column; justify-content: space-between;"
    +                             >
    +                               <div
    +                                 class="MuiBox-root css-0"
    +                                 style="display: flex; flex-direction: row; justify-content: space-between; align-items: center;"
    +                               >
    +                                 <mock-icon
    +                                   aria-hidden=""
    +                                   class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root"
    +                                   focusable="false"
    +                                 />
    +                                 <h5
    +                                   class="MuiTypography-root MuiTypography-h5 css-1ukimg9-MuiTypography-root"
    +                                 >
    +                                   Powered by Safenet
    +                                 </h5>
    +                               </div>
    +                               <div
    +                                 class="MuiBox-root css-0"
    +                                 style="border-radius: 0 0 var(--space-1) var(--space-1); margin: 0px 1px 1px 1px;"
    +                               >
    +                                 <span
    +                                   class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-k0aauw-MuiCircularProgress-root"
    +                                   role="progressbar"
    +                                   style="width: 22px; height: 22px;"
    +                                 >
    +                                   <svg
    +                                     class="MuiCircularProgress-svg css-54pwck-MuiCircularProgress-svg"
    +                                     viewBox="22 22 44 44"
    +                                   >
    +                                     <circle
    +                                       class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-960umw-MuiCircularProgress-circle"
    +                                       cx="44"
    +                                       cy="44"
    +                                       fill="none"
    +                                       r="20.2"
    +                                       stroke-width="3.6"
    +                                     />
    +                                   </svg>
    +                                 </span>
    +                               </div>
    +                             </div>
    +                           </div>
    +                         </div>
    +                       </div>
    +                     </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>

      54 |
      55 |     expect(getByTestId('sign-btn')).toBeInTheDocument()
    > 56 |     expect(container).toMatchSnapshot()
         |                       ^
      57 |   })
      58 |
      59 |   it('should display an error screen', async () => {

      at Object.toMatchSnapshot (src/components/tx/SignOrExecuteForm/__tests__/SignOrExecute.test.tsx:56:23)

Annotations

Check failure on line 113 in apps/web/src/components/tx/confirmation-views/ConfirmationView.test.tsx

See this annotation in the file changed.

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

ConfirmationView > should display a confirmation screen for a SETTINGS_CHANGE transaction

Error: expect(received).toMatchSnapshot()

Snapshot name: `ConfirmationView should display a confirmation screen for a SETTINGS_CHANGE transaction 1`

- Snapshot  -  8
+ Received  + 12

@@ -279,18 +279,22 @@
                          data-testid="tx-data-row"
                        >
                          <div
                            class="MuiBox-root css-axw7ok"
                          >
-                           <img
-                             alt="ETH"
-                             class="image"
-                             height="26"
-                             loading="lazy"
-                             referrerpolicy="no-referrer"
-                             src="/images/common/token-placeholder.svg"
-                           />
+                           <div
+                             class="container false"
+                           >
+                             <img
+                               alt="ETH"
+                               class="image"
+                               height="26"
+                               loading="lazy"
+                               referrerpolicy="no-referrer"
+                               src="/images/common/token-placeholder.svg"
+                             />
+                           </div>
                            <p
                              class="MuiTypography-root MuiTypography-body1 css-w5uidf-MuiTypography-root"
                            >
                              ETH
                            </p>
    at Object.toMatchSnapshot (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/apps/web/src/components/tx/confirmation-views/ConfirmationView.test.tsx:118:23)
    at Promise.then.completed (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/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-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 121 in apps/web/src/components/tx/confirmation-views/ConfirmationView.test.tsx

See this annotation in the file changed.

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

ConfirmationView > should display a confirmation with method call when the transaction type is not found in the ConfirmationView's mapper

Error: expect(received).toMatchSnapshot()

Snapshot name: `ConfirmationView should display a confirmation with method call when the transaction type is not found in the ConfirmationView's mapper 1`

- Snapshot  -  8
+ Received  + 12

@@ -168,18 +168,22 @@
                          data-testid="tx-data-row"
                        >
                          <div
                            class="MuiBox-root css-axw7ok"
                          >
-                           <img
-                             alt="ETH"
-                             class="image"
-                             height="26"
-                             loading="lazy"
-                             referrerpolicy="no-referrer"
-                             src="/images/common/token-placeholder.svg"
-                           />
+                           <div
+                             class="container false"
+                           >
+                             <img
+                               alt="ETH"
+                               class="image"
+                               height="26"
+                               loading="lazy"
+                               referrerpolicy="no-referrer"
+                               src="/images/common/token-placeholder.svg"
+                             />
+                           </div>
                            <p
                              class="MuiTypography-root MuiTypography-body1 css-w5uidf-MuiTypography-root"
                            >
                              ETH
                            </p>
    at Object.toMatchSnapshot (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/apps/web/src/components/tx/confirmation-views/ConfirmationView.test.tsx:133:23)
    at Promise.then.completed (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/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-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 34 in apps/web/src/components/tx/SignOrExecuteForm/__tests__/SignOrExecute.test.tsx

See this annotation in the file changed.

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

SignOrExecute > should display a confirmation screen

Error: expect(received).toMatchSnapshot()

Snapshot name: `SignOrExecute should display a confirmation screen 1`

- Snapshot  -  1
+ Received  + 70

@@ -76,11 +76,80 @@
                      role="region"
                    >
                      <div
                        class="MuiAccordionDetails-root css-w74p4c-MuiAccordionDetails-root"
                        data-testid="decoded-tx-details"
-                     />
+                     >
+                       <div
+                         class="MuiBox-root css-164r41r"
+                       >
+                         <div
+                           class="MuiGrid-root MuiGrid-container css-86qz5o-MuiGrid-root"
+                         >
+                           <div
+                             class="MuiGrid-root MuiGrid-item css-1wehkfy-MuiGrid-root"
+                             data-testid="tx-row-title"
+                             style="word-break: break-word;"
+                           >
+                             <p
+                               class="MuiTypography-root MuiTypography-body1 css-shf88x-MuiTypography-root"
+                             >
+                               Safenet checks:
+                             </p>
+                           </div>
+                           <div
+                             class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-true css-1vd824g-MuiGrid-root"
+                             data-testid="tx-data-row"
+                           >
+                             <div
+                               class="safenetGradientRow MuiBox-root css-0"
+                               style="border-radius: calc(var(--space-1) - 1px); display: flex; align-items: stretch; flex-direction: column; justify-content: space-between;"
+                             >
+                               <div
+                                 class="MuiBox-root css-0"
+                                 style="display: flex; flex-direction: row; justify-content: space-between; align-items: center;"
+                               >
+                                 <mock-icon
+                                   aria-hidden=""
+                                   class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-tqxw8e-MuiSvgIcon-root"
+                                   focusable="false"
+                                 />
+                                 <h5
+                                   class="MuiTypography-root MuiTypography-h5 css-1ukimg9-MuiTypography-root"
+                                 >
+                                   Powered by Safenet
+                                 </h5>
+                               </div>
+                               <div
+                                 class="MuiBox-root css-0"
+                                 style="border-radius: 0 0 var(--space-1) var(--space-1); margin: 0px 1px 1px 1px;"
+                               >
+                                 <span
+                                   class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-k0aauw-MuiCircularProgress-root"
+                                   role="progressbar"
+                                   style="width: 22px; height: 22px;"
+                                 >
+                                   <svg
+                                     class="MuiCircularProgress-svg css-54pwck-MuiCircularProgress-svg"
+                                     viewBox="22 22 44 44"
+                                   >
+                                     <circle
+                                       class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-960umw-MuiCircularProgress-circle"
+                                       cx="44"
+                                       cy="44"
+                                       fill="none"
+                                       r="20.2"
+                                       stroke-width="3.6"
+                                     />
+                                   </svg>
+                                 </span>
+                               </div>
+                             </div>
+                           </div>
+                         </div>
+                       </div>
+                     </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
    at Object.toMatchSnapshot (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/apps/web/src/components/tx/SignOrExecuteForm/__tests__/SignOrExecute.test.tsx:56:23)
    at Promise.then.completed (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/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-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/safe-wallet-monorepo/safe-wallet-monorepo/node_modules/jest-runner/build/testWorker.js:106:12)