From 9dfa32ed1c1fd8b6698a6d4c7d8710c61e62aff5 Mon Sep 17 00:00:00 2001 From: Varun Vachhar Date: Mon, 21 Oct 2024 09:46:44 -0400 Subject: [PATCH] Update src/content/snapshotOptions/animations.mdx Co-authored-by: jonniebigodes --- src/content/snapshotOptions/animations.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/snapshotOptions/animations.mdx b/src/content/snapshotOptions/animations.mdx index 36d13a15..903a17d6 100644 --- a/src/content/snapshotOptions/animations.mdx +++ b/src/content/snapshotOptions/animations.mdx @@ -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`.