interactors icon indicating copy to clipboard operation
interactors copied to clipboard

with-cypress doesn't work with Cypress 10

Open trevorr opened this issue 3 years ago • 1 comments

After upgrading from Cypress 8 to 10, we started getting this CypressError using @interactors/[email protected]:

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

node_modules/.pnpm/@[email protected][email protected]/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'));
     | ^

trevorr avatar Jun 23 '22 21:06 trevorr

@wKich is working on a workaround and a more permanent solution to this in here https://github.com/thefrontside/interactors/pull/208

taras avatar Jul 21 '22 17:07 taras