feat: support message creation from url query (#960)

This commit is contained in:
Jeremy 2025-04-28 23:18:02 -07:00 committed by GitHub
parent f18af236a0
commit 451a866c73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 3 deletions

View file

@ -138,4 +138,15 @@ test.describe('Chat activity', () => {
await assistantMessage.downvote();
await chatPage.isVoteComplete();
});
test('Create message from url query', async ({ page }) => {
await page.goto('/?query=Why is the sky blue?');
const userMessage = await chatPage.getRecentUserMessage();
expect(userMessage.content).toBe('Why is the sky blue?');
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
expect(assistantMessage.content).toContain("It's just blue duh!");
});
});