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

[dapp-example] synpress throws errors at setupMetamask task #3265

Open
quiet-node opened this issue Nov 14, 2024 · 0 comments
Open

[dapp-example] synpress throws errors at setupMetamask task #3265

quiet-node opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@quiet-node
Copy link
Member

Description

Running the synpress test in the dapp-example throws error at setupMetamask task.

Steps to reproduce

Run npm run test then observe the error

  1) "before all" hook for "Show alias"

  0 passing (543ms)
  1 failing

  1) Test Core Hedera User Scenarios
       Tests with normal account
         "before all" hook for "Show alias":
     CypressError: `cy.task('setupMetamask')` failed with the following error:

> Cannot read properties of undefined (reading 'waitForTimeout')

https://on.cypress.io/api/task

Because this error occurred during a `before all` hook we are skipping all of the remaining tests.

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
      at <unknown> (http://localhost:3000/__cypress/runner/cypress_runner.js:135434:70)
      at tryCatcher (http://localhost:3000/__cypress/runner/cypress_runner.js:1807:23)
      at Promise._settlePromiseFromHandler (http://localhost:3000/__cypress/runner/cypress_runner.js:1519:31)
      at Promise._settlePromise (http://localhost:3000/__cypress/runner/cypress_runner.js:1576:18)
      at Promise._settlePromise0 (http://localhost:3000/__cypress/runner/cypress_runner.js:1621:10)
      at Promise._settlePromises (http://localhost:3000/__cypress/runner/cypress_runner.js:1697:18)
      at _drainQueueStep (http://localhost:3000/__cypress/runner/cypress_runner.js:2407:12)
      at _drainQueue (http://localhost:3000/__cypress/runner/cypress_runner.js:2400:9)
      at Async._drainQueues (http://localhost:3000/__cypress/runner/cypress_runner.js:2416:5)
      at Async.drainQueues (http://localhost:3000/__cypress/runner/cypress_runner.js:2286:14)
  From Your Spec Code:
      at Context.eval (webpack://example-dapp/./node_modules/@synthetixio/synpress/support/commands.js:285:14)

  From Node.js Internals:
    TypeError: Cannot read properties of undefined (reading 'waitForTimeout')
        at Object.fixBlankPage (/Users/user/development/hashgraph/hedera-json-rpc-relay/dapp-example/node_modules/@synthetixio/synpress/commands/playwright.js:399:16)
        at Object.initialSetup (/Users/user/development/hashgraph/hedera-json-rpc-relay/dapp-example/node_modules/@synthetixio/synpress/commands/metamask.js:1526:22)
        at async setupMetamask (/Users/user/development/hashgraph/hedera-json-rpc-relay/dapp-example/node_modules/@synthetixio/synpress/plugins/index.js:166:7)

Additional context

No response

Hedera network

other

Version

latest

Operating system

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant