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
it('supports cy.state(\'subject\') for backwards compatability',()=>{
138
138
cy.stub(Cypress.utils,'warning')
139
-
consta={}
139
+
constsubject={}
140
140
141
-
cy.wrap(a).then(()=>{
142
-
expect(cy.state('subject')).to.equal(a)
141
+
cy.wrap(subject).then(()=>{
142
+
expect(cy.state('subject')).to.equal(subject)
143
143
expect(Cypress.utils.warning).to.be.calledWith('`cy.state(\'subject\')` has been deprecated and will be removed in a future release. Consider migrating to `cy.currentSubject()` instead.')
0 commit comments