diff --git a/apps/ledger-live-desktop/src/renderer/animations/index.tsx b/apps/ledger-live-desktop/src/renderer/animations/index.tsx index f0afbb0dc9f2..bb58f20ceb10 100644 --- a/apps/ledger-live-desktop/src/renderer/animations/index.tsx +++ b/apps/ledger-live-desktop/src/renderer/animations/index.tsx @@ -22,8 +22,10 @@ const Animation = ({ rendererSettings?: LottieProps["options"]["rendererSettings"]; isPaused?: boolean; isStopped?: boolean; -}) => - animation ? ( +}) => { + // in case of playwright tests, we want to completely stop the animation + const isPlaywright = !!getEnv("PLAYWRIGHT_RUN"); + return animation ? ( ) : null; +}; export default Animation;