synpress: acceptMetamaskAccess doesn't work in CI
Hello,
I wrote synpress test and everything works on localhost (mac M1 - yarn test:e2e:local). But it doesn’t work on mac intel and github actions. The error appears after cy.acceptMetamaskAccess()
:
message: "Request of type 'wallet_requestPermissions' already pending for origin xyz./ Please wait.",
There was already an issue like that: https://github.com/Synthetixio/synpress/issues/498 but nothing helps.
I have two github actions workflows:
- github-actions-docker
- github-actions-local and both throw the same error. I have already used docker-compose and docker-compose.ci.
There is a minimal reproduction: https://github.com/Cianekjr/e2e
Could you take a look, please? Thanks 😉
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (8 by maintainers)
@Cianekjr thanks for report, will take a look until end of next week.
yeah, I get that, I’m going to play around with it some more later today and see what happens. 🙏 thanks a lot for your help and please keep us updated if you manage to fix it!
I created a sample repo where I reproduced the issue I posted above, please see the following links: https://github.com/alexo382/synpress-ci https://github.com/alexo382/synpress-ci/blob/main/.github/workflows/main.yml https://github.com/alexo382/synpress-ci/actions/runs/4167336059/jobs/7212800741
here’s the stack trace from the CI failure:
you can run it locally but it will work fine, if you fork it to run it in CI mode note that you have to add a
PRIVATE_KEY
in the repo’s github secrets. let me know how it goes!hey Jakub, thanks for the update! I still seem to be getting
locator resolved to hidden <div class="app os-linux">…</div>
onacceptMetamaskAccess
in CI, any idea how to solve?