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.
When using cy.screenshot my editor warns me that it's deprecated and refers to cy.intercept. I tried looking at the release blog post and the docs for these two function but it doesn't seem this should be deprecated.
Diving into the type definitions it looks like this:
/**
* @deprecated Use `cy.intercept()` instead.
*
* Take a screenshot of the application under test and the Cypress Command Log.
*
* @see https://on.cypress.io/screenshot
* @example
* cy.screenshot()
* cy.get(".post").screenshot()
*/
screenshot(options?: Partial<Loggable & Timeoutable & ScreenshotOptions>): Chainable<null>### Desired behaviorTo not have this flagged as deprecated or instructions in the docs on how to use intercept for screenshots.
The code for this is done in cypress-io/cypress#9323, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
Current behavior
When using
cy.screenshot
my editor warns me that it's deprecated and refers tocy.intercept
. I tried looking at the release blog post and the docs for these two function but it doesn't seem this should be deprecated.Diving into the type definitions it looks like this:
Test code to reproduce
Versions
6.0.0
The text was updated successfully, but these errors were encountered: