diff --git a/e2e-tests/tests/infra/StudioPlaywrightPage.ts b/e2e-tests/tests/infra/StudioPlaywrightPage.ts index 1a1572113..5bc169616 100644 --- a/e2e-tests/tests/infra/StudioPlaywrightPage.ts +++ b/e2e-tests/tests/infra/StudioPlaywrightPage.ts @@ -134,13 +134,19 @@ export default class StudioPlaywrightPage { */ async waitForLoadState() { await this.page.waitForLoadState(); - const overlayDomEl = this.page.getByTestId("loading-overlay") - await expect.poll(() => overlayDomEl.evaluate((e: HTMLElement) => { - console.log(e.className) - return e.className.includes("opacity-0") - }), { - message: "Waiting for LoadingOverlay to finish.", - timeout: 5000, - }).toBeTruthy() + const overlayDomEl = this.page.getByTestId("loading-overlay"); + await expect + .poll( + () => + overlayDomEl.evaluate((e: HTMLElement) => { + console.log(e.className); + return e.className.includes("opacity-0"); + }), + { + message: "Waiting for LoadingOverlay to finish.", + timeout: 5000, + } + ) + .toBeTruthy(); } } diff --git a/packages/studio-ui/src/components/LoadingOverlay.tsx b/packages/studio-ui/src/components/LoadingOverlay.tsx index 8578ff432..76c102874 100644 --- a/packages/studio-ui/src/components/LoadingOverlay.tsx +++ b/packages/studio-ui/src/components/LoadingOverlay.tsx @@ -28,7 +28,9 @@ export default function LoadingOverlay( return ( <> -
{overlay}
+
+ {overlay} +
{props.children}
);