From 2c94bfa8eaf64e451cf33aa0a20ab359f6dcc8f0 Mon Sep 17 00:00:00 2001 From: Andreas Opferkuch Date: Wed, 27 Nov 2024 20:38:17 +0100 Subject: [PATCH] Fix end to end test --- tests/chat-delay.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/chat-delay.spec.ts b/tests/chat-delay.spec.ts index 12146b2..7b5df48 100644 --- a/tests/chat-delay.spec.ts +++ b/tests/chat-delay.spec.ts @@ -11,7 +11,7 @@ test("chat has acceptable delay until stream starts", async ({ page }) => { const start = Date.now(); await page.getByRole("main").getByRole("button").click(); - await page.getByTestId("message-1-assistant").waitFor(); + await page.getByTestId("message-loading").waitFor(); const durationUntilResponse = Date.now() - start; console.log("durationUntilResponse:", durationUntilResponse);