Open History to see the last commit
1import { expect, test } from '@playwright/test'
2
3/**
4 * `StreamProcessor` must not drop the first `TEXT_MESSAGE_CONTENT` delta when
5 * the message's `TEXT_MESSAGE_START` precedes the tool call, the order used by
6 * providers that open the assistant message before calling a tool.
7 */
8test.describe('text-first tool call (#1247)', () => {
9 test('does not drop the first text delta when text starts before the tool call', async ({
10 page,
11 }) => {
12 await page.goto('/text-first-tool')
13
14 await expect(page.getByTestId('assistant-text')).toHaveText('Hello, world.')
15 })
16})