From 0acf89234c3139b8993c393a465336db8f1cb0d9 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 1 Jun 2024 11:24:31 -0700 Subject: [PATCH] LibWeb: Try to fix a flaky animation test Not sure if this'll fix it fully, as the flake has only ever been observed on CI. --- .../WebAnimations/animation-properties/replaceState.html | 4 ++++ 1 file changed, 4 insertions(+) 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"}`); });