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
Is your feature request related to a problem? Please describe.
I have similar problem you propose to solve using delay env config. But instead of waiting for an animation in the generated storybook, i want to wait a few ms before taking the snapshots. More specifically before cy.document() call.
Describe the solution you'd like
Basically following check before cy.document() call would do:
if (Cypress.env("delaySnapshot") {
cy.wait(Cypress.env("delaySnapshot"))
}
Describe alternatives you've considered
Currently I've patched the package and added it myself. I can open the PR if you guys want.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
@tsirlucas thanks for the suggestion! If possible, we'd like to leverage the testing framework to help with this. Could this be accomplished by using cy.wait or another Cypress method to wait for an element in the relevant tests?
Is your feature request related to a problem? Please describe.
I have similar problem you propose to solve using delay env config. But instead of waiting for an animation in the generated storybook, i want to wait a few ms before taking the snapshots. More specifically before cy.document() call.
Describe the solution you'd like
Basically following check before cy.document() call would do:
if (Cypress.env("delaySnapshot") {
cy.wait(Cypress.env("delaySnapshot"))
}
Describe alternatives you've considered
Currently I've patched the package and added it myself. I can open the PR if you guys want.
Additional context
N/A
The text was updated successfully, but these errors were encountered: