synpress icon indicating copy to clipboard operation
synpress copied to clipboard

[πŸ› Bug]: Can't run synpress 3.7.2-beta.9 in Github Actions (`cy.task('setupMetamask')` timed out after waiting `120000ms`.)

Open louis-md opened this issue 1 year ago β€’ 4 comments

πŸ”Ž Have you searched existing issues to avoid duplicates?

  • [X] I have made sure that my issue is not a duplicate.

πŸ§ͺ Have you tested your code using latest version of Synpress?

πŸ’‘ Are you able to provide enough information to be able to reproduce your issue locally?

  • [X] I can provide enough details to reproduce my issue on local environment.

Synpress version

3.7.2-beta.9

Node.js version

20.10.0

Operating system

Linux

Run mode

Synpress (standalone)

CI platform (if applicable)

Github Actions

Are you running your tests inside docker? (if applicable)

  • [ ] This issue could be related to docker.

What happened?

After updating from older versions of synpress, all tests fail on Github actions at "before all" hook step, with no additional logs.

Capture d’écran 2024-01-13 aΜ€ 16 24 47

Video recordings don't show anything from the metamask window.

Tested with both headful and debug github actions examples (see reproduction below).

What is your expected behavior?

Tests should run normally on Github actions without error at setupMetamask() step.

How to reproduce the bug.

Reproduced repo can be found here

Steps to create this repo:

  1. Create nextjs app with npx create-next-app@latest nextjs-blog --use-npm --example "https://github.com/vercel/next-learn/tree/main/basics/learn-starter"
  2. Add synpress configs in tests (support.js & synpress.js inspired from official config)
  3. Add github action in .github/workflows (taken from debug github action example)
  4. Add dummy test
  5. Push to github, will trigger the workflow automatically.

An example of a failed workflow can be found here

Relevant log output

No response

Updates

  • 14/01/23: Switched the dependencies manager from yarn to pnpm. The issue remains.

louis-md avatar Jan 13 '24 16:01 louis-md

I had the same problem before, I rolled back the cypress version to 12.7.0 and the problem was solved

abiii-starry avatar Jan 22 '24 08:01 abiii-starry

I had the same problem before, I rolled back the cypress version to 12.7.0 and the problem was solved

I am using:

"@synthetixio/synpress": "^3.7.2-beta.9",
 "cypress": "^12.7.0",

..but I am getting same issue but on random basis - 3/4 runs pass and suddenly one of these runs fail for all test cases (I believe metamask doesn't setup properly): image

gediminasInterCap avatar Jan 22 '24 14:01 gediminasInterCap

Unfortunately downgrading cypress to v12.7.0 did not solve the issue for me.

louis-md avatar Jan 22 '24 17:01 louis-md

Still having this issue after upgrading synpress to v3.7.3 and cypress to 12.17.3

louis-md avatar Aug 15 '24 16:08 louis-md