Skip to content

Add delaySnapshot env config #161

@tsirlucas

Description

@tsirlucas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions