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

.invoke() no longer awaits promises in 11.x #4785

Closed
wants to merge 1 commit into from

Conversation

BlueWinds
Copy link
Contributor

@BlueWinds BlueWinds commented Oct 17, 2022

Matching code PR: cypress-io/cypress#24203

User-facing changelog:

I'm not adding an 11.0.0 Changelog file yet so that merging into the v11 branch later is a bit less painful; creating the changelog entries will be a TODO when merging issue-7306 into v11.

  • .invoke() no longer waits for promises to resolve. If you wish to await a promise, use cy.then() instead.
  • If cy.getCookie() fails to find a cookie, you can no longer traverse the non-existent cookie's properties (eg, with .its('value)). If you expect a cookie not to exist, assert that directly, eg: cy.getCookie('foo1').should('not.exist')

@vercel
Copy link

vercel bot commented Oct 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cypress-documentation ✅ Ready (Inspect) Visit Preview Oct 17, 2022 at 5:08PM (UTC)

@BlueWinds
Copy link
Contributor Author

Folding this in with my main PR to the v12 branch. https://github.com/cypress-io/cypress-documentation/pull/4835/files

@BlueWinds BlueWinds closed this Nov 8, 2022
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

Successfully merging this pull request may close these issues.

3 participants