synpress
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`.)
π 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?
- [X] I have made sure that my issue still exists on 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.
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:
- 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" - Add synpress configs in
tests(support.js & synpress.js inspired from official config) - Add github action in
.github/workflows(taken from debug github action example) - Add dummy test
- 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
yarntopnpm. The issue remains.
I had the same problem before, I rolled back the cypress version to 12.7.0 and the problem was solved
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):
Unfortunately downgrading cypress to v12.7.0 did not solve the issue for me.
Still having this issue after upgrading synpress to v3.7.3 and cypress to 12.17.3