diff --git a/Tests/LibWeb/Text/input/WebAnimations/animation-properties/replaceState.html b/Tests/LibWeb/Text/input/WebAnimations/animation-properties/replaceState.html index 01d29ff7aea..5153155debd 100644 --- a/Tests/LibWeb/Text/input/WebAnimations/animation-properties/replaceState.html +++ b/Tests/LibWeb/Text/input/WebAnimations/animation-properties/replaceState.html @@ -16,6 +16,10 @@ println(`Animation's replaceState is not removed after creating new animation: ${animation1.replaceState === "active"}`); await animation2.finished; + + // This shouldn't be necessary, but this test has been a bit flaky on CI, so this should hopefully make the test more reliable + await animationFrame(); + println(`Animation's replaceState is removed after new animation finishes: ${animation1.replaceState === "removed"}`); });