Add chat streaming regression coverage

Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-04-17 13:44:34 +00:00
committed by Haze
parent 5c6f0745b5
commit 006618e658

View File

@@ -360,9 +360,9 @@ test.describe('ClawX chat execution graph', () => {
});
await expect(page.getByText('打开浏览器,搜索腾讯新闻,截图给我')).toHaveCount(1);
await expect(page.getByText('思考 1 2 3')).toHaveCount(1);
await expect(page.getByText('思考 1 2')).toHaveCount(0);
await expect(page.getByText('思考 1')).toHaveCount(0);
await expect(page.getByText(/^思考 1 2 3$/)).toHaveCount(1);
await expect(page.getByText(/^思考 1 2$/)).toHaveCount(0);
await expect(page.getByText(/^思考 1$/)).toHaveCount(0);
await expect(page.getByText(/^1 2 3$/)).toHaveCount(1);
await expect(page.getByText(/^1 2$/)).toHaveCount(0);
await expect(page.getByText(/^1$/)).toHaveCount(0);