fix: race condition causing playwright test failure (#1088)
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
This commit is contained in:
parent
32e823211d
commit
e8b0eca069
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue