Closed michax closed 1 year ago
Any suggestions how to write Tests for this change? Or is dev/manual testing enough?
I'm good with manual testing. I've manually verified there are no more warnings in the log.
:tada: This PR is included in version 8.0.6 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Adding forward compatibility with Cypress 10 which now deprecated
cy.state('subject')
usage and directs developers to use cy.currentSubject() instead.Cypress changelog mentioning above: https://docs.cypress.io/guides/references/changelog#10-5-0![image](https://user-images.githubusercontent.com/117785/197749194-9cc9d79e-c10b-4b6b-a5d4-82c58516e337.png)
Without those changes, Cypress 10 spams dev tools console log with hundreds of warnings about usage of deprecated cy.state('subject'). Makes debugging harder then it should be.
How:
Checking for existence of new currentSubject method in cy object and using it instead when present.
Checklist: