diff --git a/e2e/usagesPopup.fixture.tsx b/e2e/usagesPopup.fixture.tsx index ad25aadf6b..b8e9148e1f 100644 --- a/e2e/usagesPopup.fixture.tsx +++ b/e2e/usagesPopup.fixture.tsx @@ -141,6 +141,7 @@ function DemoControls() { }; const centered = (next = scenario) => show(window.innerWidth / 2, 80, next); const resize = (width: number) => { + flushSync(() => dismissUsagesPopup()); localStorage.setItem(sizeKey, JSON.stringify({ w: width, h: 320 })); centered(); }; @@ -218,6 +219,7 @@ function DemoControls() {