Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

call-ownership.spec.ts

18 lines620 Bytes

1import { expect, test } from '@playwright/test'
2​
3/**
4 * Each model call is its own assistant message. Reasoning that arrives before
5 * the call's text id, and a tool-only call, must not land on the previous
6 * message. Issue #1533.
7 */
8test.describe('call ownership (#1533)', () => {
9 test('splits three model calls across three assistant messages', async ({
10 page,
11 }) => {
12 await page.goto('/call-ownership')
13​
14 await expect(page.getByTestId('assistants')).toHaveText(
15 'msg-1 thinking:think A,text:hello,tool-call,tool-result;msg-2 tool-call,tool-result;msg-3 thinking:think B,text:bye',
16 )
17 })
18})