feat(coding): nest Conversations under Agents

This commit is contained in:
2026-08-25 16:34:11 +08:00
parent c4ca16fa19
commit 45d933732a
5 changed files with 238 additions and 64 deletions

View File

@@ -448,6 +448,11 @@ test('first PI Conversation is editable under 500 ms and submits before runtime
performance.mark('pi-first-chat-start');
window.location.hash = '/chat';
});
const builderButton = page.getByRole('button', { name: 'Builder', exact: true });
await expect(builderButton).toHaveAttribute('aria-expanded', 'true');
const builderConversations = page.getByRole('group', { name: 'Builder 的对话' });
await expect(builderConversations).toBeVisible();
await expect(builderConversations.getByRole('button', { name: '新对话', exact: true })).toBeVisible();
const composer = page.getByRole('textbox');
await expect(composer).toBeEnabled();
const editableMs = await page.evaluate(() => (
@@ -560,7 +565,9 @@ test('PI feature UI isolates Conversations and exposes queue, interaction, model
await page.getByRole('button', { name: /\/review/ }).click();
await expect(page.getByRole('textbox')).toHaveValue('/review ');
await page.getByRole('button', { name: 'Second Conversation' }).first().click();
const builderConversations = page.getByRole('group', { name: 'Builder 的对话' });
await expect(builderConversations).toBeVisible();
await builderConversations.getByRole('button', { name: 'Second Conversation' }).click();
await expect(page.getByTestId('coding-conversation-header')).toContainText('Second Conversation');
await expect(page.getByRole('combobox', { name: '当前对话模型' })).toHaveValue(
JSON.stringify(['account-e2e', 'model-b']),