Closed pfpoujol closed 1 year ago
Thank you for the report @pfpoujol, we will look into it.
Could you please provide more information on what cypress version do you use? Can you reproduce the issue if you install an earlier cypress version?
Thanks in advance
Hello @TapaiBalazs i use the latest version of cypress (v12.7.0).
I just tried with v11.2.0, no issue with this version.
@pfpoujol thank you for confirming. I believe there was a breaking change in the latest cypress version that no longer allows to overwrite the .as()
method.
We will look into this more when we will have some capacity. During that time you might be able to use the package with an older version of cypress as a workaround.
Yes, as it seems our package got broken with v12.0.0, and they introduced a method to fix it in 12.6.0: https://docs.cypress.io/guides/references/changelog#12-6-0
Now, we cannot override .as()
with .override
, but we need to change our implementation to .overwriteQuery()
.
Just for clarity: the package was actually broken earlier, at v12.0.0 (you have to go back to v11.x atm) - it just can't be fixed until v12.6.0
Edit: but, haha, we knew that already, and the docs update is underway (nice!, that's what I was looking for): https://github.com/thisdot/open-source/pull/155/commits/38e83dc9911bc1243251a90a95127583f722490b#diff-7931dcd2c0a27342acc41de5028b415b1c9bec6171915165abc39c36e2cdc3f7R40
Thank you for the fix!
Dear @pfpoujol, @dominics,
Thank you for your patience, @this-dot/cypress-indexeddb@2.0.0
is now released and it should work with cypress versions 12.6.0 or above.
This issue will be closed automatically soon.
What package and version are you using?
cypress-indexeddb@1.1.3
What browser are you using?
Chrome
What operating system are you using?
Windows
Actual Behavior
I installed cypress-indexeddb in my project and followed "Installation" step of the README. When I try to run my e2e tests, this is what happens:
Expected Behavior
I should see the results of my tests.
Reproduction
ng serve
npx cypress open
and create first e2e testnpx cypress run
ornpx cypress open
https://stackblitz.com/edit/angular-ted3cu (you should download the project on your local machine to be able to run cypress)Additional Information
No response