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

[🐛 Bug]: Can't run synpress 3.7.2-beta.9 in Github Actions (cy.task('setupMetamask') timed out after waiting 120000ms.) #1071

Open
3 of 4 tasks
louis-md opened this issue Jan 13, 2024 · 3 comments
Labels
bug 🐛 Something isn't working needs triaging ⏳

Comments

@louis-md
Copy link

louis-md commented Jan 13, 2024

🔎 Have you searched existing issues to avoid duplicates?

  • 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?

  • 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 à 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 louis-md added bug 🐛 Something isn't working needs triaging ⏳ labels Jan 13, 2024
@abiii-starry
Copy link

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

@gediminasInterCap
Copy link

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

@louis-md
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working needs triaging ⏳
Projects
None yet
Development

No branches or pull requests

3 participants