Polish Agent configuration and unify advanced settings

This commit is contained in:
鲨鱼辣椒 committed 2026-10-12 18:40:33 +08:00
1 parent a7182ac8fe
commit 1166931a26
13 files changed
+422 -102

No files matched your search

+8 -4
View File
@@ -167,15 +167,19 @@ test('personal cloud Agent identity, configuration and separate published chat i
await prompt.fill(initialPrompt);
await page.getByRole('button', { name: '开始使用', exact: true }).click();
await expect(advancedTab).toHaveAttribute('aria-selected', 'true');
await expect(page.getByRole('button', { name: '模型', exact: true })).toHaveAttribute('aria-current', 'page');
await expect(page.getByRole('navigation', { name: '配置分类', exact: true })).toHaveCount(0);
await expect(page.getByLabel('模型', { exact: true })).toBeVisible();
await expect(page.getByLabel('模型', { exact: true })).toHaveValue('');
await expect(page.getByLabel('模型', { exact: true })).toHaveAttribute('required', '');
await expect(page.getByRole('button', { name: '确认开始使用', exact: true })).toHaveCount(0);
expect((await fixtureState()).operations).not.toContain('publish');
await page.getByLabel('模型', { exact: true }).selectOption('reasoning-model');
await page.getByRole('button', { name: '能力', exact: true }).click();
await page.getByRole('button', { name: '选择工具', exact: true }).click();
await expect(page.getByText('选它做事时能用的工具。', { exact: true })).toBeVisible();
await expect(page.getByText('给它一本手册,照着方法做。', { exact: true })).toBeVisible();
await expect(page.getByRole('group', { name: /^知识库/ })).toBeVisible();
await expect(page.getByRole('heading', { name: '费用上限', exact: true })).toBeVisible();
await expect(page.getByRole('heading', { name: '运行限制', exact: true })).toBeVisible();
await page.getByRole('button', { name: '选择工具箱', exact: true }).click();
await page.getByRole('checkbox', { name: '资料整理工具', exact: true }).check();
await instructionsTab.click();
await expect(introduction).toHaveValue('一起梳理故事和文章');
@@ -202,7 +206,7 @@ test('personal cloud Agent identity, configuration and separate published chat i
await expect(introduction).toHaveValue('');
await expect(prompt).toHaveValue(initialPrompt);
await advancedTab.click();
await expect(page.getByRole('button', { name: '模型', exact: true })).toHaveAttribute('aria-current', 'page');
await expect(page.getByRole('navigation', { name: '配置分类', exact: true })).toHaveCount(0);
await expect(page.getByLabel('模型', { exact: true })).toHaveValue('reasoning-model');
await page.screenshot({ path: testInfo.outputPath('cloud-agent-advanced-model.png') });
await instructionsTab.click();