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

with-cypress doesn't work with Cypress 10 #207

Open
trevorr opened this issue Jun 23, 2022 · 1 comment
Open

with-cypress doesn't work with Cypress 10 #207

trevorr opened this issue Jun 23, 2022 · 1 comment

Comments

@trevorr
Copy link

trevorr commented Jun 23, 2022

After upgrading from Cypress 8 to 10, we started getting this CypressError using @interactors/with-cypress@1.0.0-rc1.1:

Cypress.Commands.add() cannot create a new command named expect because that name is reserved internally by Cypress.

node_modules/.pnpm/@interactors+with-cypress@1.0.0-rc1.1_cypress@10.2.0/node_modules/@interactors/with-cypress/dist/cypress.js:34:1:

  33 |     // NOTE: Add interaction assertion function, Cypress also overrides `expect` method to a wrapper function
> 34 |     Cypress.Commands.add('expect', (interaction) => interact([].concat(interaction), 'expect'));
     | ^
@taras
Copy link
Member

taras commented Jul 21, 2022

@wKich is working on a workaround and a more permanent solution to this in here #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants