You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
acceptMetamaskAccess() is failing.
CypressError: cy.task() must only be invoked from the spec file or support file.
From Your Spec Code: at Context.eval (webpack:///./node_modules/@synthetixio/synpress/support/commands.js:184:0)
Line 184: return cy.task('acceptMetamaskAccess', options);
To Reproduce
Steps to reproduce the behavior:
Run the project
Wait until framework has to accept the metamask login access
See error
Expected behavior
Login successfully. acceptMetamaskAccess() should works as it did before.
Desktop (please complete the following information):
OS: macOS 12.6.5
Synpress version: 3.7.1
running locally
Additional context
There was an issue on cypress related to this on a new version (12.15.0), but I'm using an old one (12.11.0), so should works. cypress-io/code-coverage#667
The text was updated successfully, but these errors were encountered:
@mflorlorenzo I also faced the same issue a few days ago. For me the thing was even though I had gone back to an older version the test run was still using the latest version. You can try by checking the starting of the test where it shows all the spec files and other info
Well, I found the issue.
I changed the cypress version from 12.16.0 to 12.14.0 on @synthetixio/synpress/node_modules/cypress/package.json and works ! @synthetixio-team is there a chance to take a look on it please? From Cypress say version 12.16.0 has the fix for this error, but it's not working here. Thanks
@mflorlorenzo: it's not Synpress's fault. As the Cypress team expressed here they know about some edge cases that still exist in 12.16.0. I do confirm that pinning Cypress version to 12.14.0 solves the problem for me too.
Describe the bug
acceptMetamaskAccess() is failing.
CypressError: cy.task() must only be invoked from the spec file or support file.
From Your Spec Code: at Context.eval (webpack:///./node_modules/@synthetixio/synpress/support/commands.js:184:0)
Line 184:
return cy.task('acceptMetamaskAccess', options);
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Login successfully. acceptMetamaskAccess() should works as it did before.
Desktop (please complete the following information):
Additional context
There was an issue on cypress related to this on a new version (12.15.0), but I'm using an old one (12.11.0), so should works.
cypress-io/code-coverage#667
The text was updated successfully, but these errors were encountered: