refactor: replace isLoading with status (#861)

This commit is contained in:
Jeremy 2025-03-11 15:33:18 -07:00 committed by GitHub
parent 8e561dced4
commit 553a3d825a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 72 additions and 109 deletions

View file

@ -11,7 +11,7 @@ test.describe('chat activity with reasoning', () => {
test('send user message and generate response with reasoning', async () => {
await chatPage.sendUserMessage('Why is the sky blue?');
await chatPage.waitForMessageGeneration();
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
expect(assistantMessage.content).toBe("It's just blue duh!");
@ -23,7 +23,7 @@ test.describe('chat activity with reasoning', () => {
test('toggle reasoning visibility', async () => {
await chatPage.sendUserMessage('Why is the sky blue?');
await chatPage.waitForMessageGeneration();
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
const reasoningElement =
@ -39,7 +39,7 @@ test.describe('chat activity with reasoning', () => {
test('edit message and resubmit', async () => {
await chatPage.sendUserMessage('Why is the sky blue?');
await chatPage.waitForMessageGeneration();
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
const reasoningElement =
@ -49,7 +49,7 @@ test.describe('chat activity with reasoning', () => {
const userMessage = await chatPage.getRecentUserMessage();
await userMessage.edit('Why is grass green?');
await chatPage.waitForMessageGeneration();
await chatPage.isGenerationComplete();
const updatedAssistantMessage = await chatPage.getRecentAssistantMessage();