Skip to content

Commit

Permalink
Update src/content/snapshotOptions/animations.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: jonniebigodes <[email protected]>
  • Loading branch information
winkerVSbecks and jonniebigodes authored Oct 21, 2024
1 parent 058d7f9 commit 9dfa32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/snapshotOptions/animations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ MotionGlobalConfig.skipAnimations = isChromatic();

### Playwright and Cypress

When using Playwright or Cypress, you can assert that specific elements are visible in the DOM to confirm an animation has finished. Alternatively, use `wait` or `waitForTimeout` functions to wait for the animation to complete.
When using Playwright or Cypress, you can assert that specific elements are visible in the DOM to confirm an animation has finished. Alternatively, use the `wait` or `waitForTimeout` functions to wait for the animation to complete.

Another strategy is to inject a variable into the window object to disable animations. For example, in your E2E test, set the `disableAnimations` property on the `window` object to `true`.

Expand Down

0 comments on commit 9dfa32e

Please sign in to comment.