From a8b48108fce578bf0fa4f5f58952a96d62c77232 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Wed, 29 Nov 2023 13:55:36 -0500 Subject: [PATCH] Fix flaky test --- integration/client-data-test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/integration/client-data-test.ts b/integration/client-data-test.ts index 7a653da0358..0c5f9e86005 100644 --- a/integration/client-data-test.ts +++ b/integration/client-data-test.ts @@ -368,6 +368,7 @@ test.describe("Client Data", () => { await app.goto("/parent/child"); html = await app.getHtml("main"); + await page.waitForSelector("#child-deferred-data"); expect(html).toMatch("Parent Server Loader"); // app.goto() doesn't resolve until the document finishes loading so by // then the HTML has updated via the streamed suspense updates