Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: remove deprecated mobile pairing #2794

Merged
merged 5 commits into from
Nov 20, 2023

Fix accounts[0] and Delete Account

8ad16d2
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix: remove deprecated mobile pairing #2794

Fix accounts[0] and Delete Account
8ad16d2
Select commit
Loading
Failed to load commit list.
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Nov 14, 2023 in 0s

Test suite run failed

Failed tests: 1/1095. Failed suites: 1/154.

Details

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

  ● WalletInfo › should display a Delete Account button on dev for social login

    TestingLibraryElementError: Unable to find an element with the text: Delete Account. 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 MuiBox-root css-0"
        >
          <div
            class="accountContainer MuiBox-root css-0"
          >
            <span
              class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-1jqhpi8-MuiSkeleton-root"
              style="width: 100%; height: 22px;"
            />
            <div
              class="addressContainer MuiBox-root css-0"
            >
              <a
                href="/settings/security-login"
              >
                <button
                  class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedWarning MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-disableElevation MuiButton-fullWidth MuiButton-root MuiButton-contained MuiButton-containedWarning MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-disableElevation MuiButton-fullWidth warningButton css-nfsdpt-MuiButtonBase-root-MuiButton-root"
                  tabindex="0"
                  type="button"
                >
                  <span
                    class="MuiButton-startIcon MuiButton-iconSizeMedium css-gcc2o7-MuiButton-startIcon"
                  >
                    <mock-icon />
                  </span>
                  Add multifactor authentication
                  <span
                    class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
                  />
                </button>
              </a>
            </div>
          </div>
          <button
            class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-fullWidth MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-fullWidth css-193jcx1-MuiButtonBase-root-MuiButton-root"
            tabindex="0"
            type="button"
          >
            Switch wallet
            <span
              class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
            />
          </button>
          <button
            class="MuiButtonBase-root MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth css-1gbexdt-MuiButtonBase-root-MuiButton-root"
            tabindex="0"
            type="button"
          >
            Disconnect
            <span
              class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
            />
          </button>
          <button
            class="MuiButtonBase-root MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth css-1gbexdt-MuiButtonBase-root-MuiButton-root"
            tabindex="0"
            type="button"
          >
            Delete account
            <span
              class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
            />
          </button>
        </div>
      </div>
    </body>

      105 |     )
      106 |
    > 107 |     expect(getByText('Delete Account')).toBeInTheDocument()
          |            ^
      108 |   })
      109 |
      110 |   it('should not display a Delete Account on prod', () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByText (src/components/common/WalletInfo/index.test.tsx:107:12)

Annotations

Check failure on line 92 in src/components/common/WalletInfo/index.test.tsx

See this annotation in the file changed.

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

WalletInfo > should display a Delete Account button on dev for social login

TestingLibraryElementError: Unable to find an element with the text: Delete Account. 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 MuiBox-root css-0"
    >
      <div
        class="accountContainer MuiBox-root css-0"
      >
        <span
          class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-1jqhpi8-MuiSkeleton-root"
          style="width: 100%; height: 22px;"
        />
        <div
          class="addressContainer MuiBox-root css-0"
        >
          <a
            href="/settings/security-login"
          >
            <button
              class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedWarning MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-disableElevation MuiButton-fullWidth MuiButton-root MuiButton-contained MuiButton-containedWarning MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-disableElevation MuiButton-fullWidth warningButton css-nfsdpt-MuiButtonBase-root-MuiButton-root"
              tabindex="0"
              type="button"
            >
              <span
                class="MuiButton-startIcon MuiButton-iconSizeMedium css-gcc2o7-MuiButton-startIcon"
              >
                <mock-icon />
              </span>
              Add multifactor authentication
              <span
                class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
              />
            </button>
          </a>
        </div>
      </div>
      <button
        class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-fullWidth MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-fullWidth css-193jcx1-MuiButtonBase-root-MuiButton-root"
        tabindex="0"
        type="button"
      >
        Switch wallet
        <span
          class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
        />
      </button>
      <button
        class="MuiButtonBase-root MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth css-1gbexdt-MuiButtonBase-root-MuiButton-root"
        tabindex="0"
        type="button"
      >
        Disconnect
        <span
          class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
        />
      </button>
      <button
        class="MuiButtonBase-root MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth MuiButton-root MuiButton-danger MuiButton-dangerPrimary MuiButton-sizeSmall MuiButton-dangerSizeSmall MuiButton-disableElevation MuiButton-fullWidth css-1gbexdt-MuiButtonBase-root-MuiButton-root"
        tabindex="0"
        type="button"
      >
        Delete account
        <span
          class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
        />
      </button>
    </div>
  </div>
</body>
    at Object.getElementError (/home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/@testing-library/dom/dist/config.js:37:19)
    at /home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at /home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at /home/runner/work/safe-wallet-web/safe-wallet-web/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByText (/home/runner/work/safe-wallet-web/safe-wallet-web/src/components/common/WalletInfo/index.test.tsx:107:12)
    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 _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)