fix: race condition causing playwright test failure (#1088)

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
This commit is contained in:
Charlton Roberts 2025-10-31 20:35:29 -04:00 committed by GitHub
parent 32e823211d
commit e8b0eca069
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,8 +48,9 @@ test.describe("chat activity with reasoning", () => {
const userMessage = await chatPage.getRecentUserMessage(); const userMessage = await chatPage.getRecentUserMessage();
const generationCompletePromise = chatPage.isGenerationComplete();
await userMessage.edit("Why is grass green?"); await userMessage.edit("Why is grass green?");
await chatPage.isGenerationComplete(); await generationCompletePromise;
const updatedAssistantMessage = await chatPage.getRecentAssistantMessage(); const updatedAssistantMessage = await chatPage.getRecentAssistantMessage();