Align combined navigation coverage and documentation with current menus

This commit is contained in:
鲨鱼辣椒 committed 2026-10-14 12:42:36 +08:00
1 parent 8d1a53a12c
commit e147119b51
3 files changed
+23 -9

No files matched your search

+13 -7
View File
@@ -522,8 +522,12 @@ test.describe('Makelore module navigation without setup flow', () => {
const chatChrome = await readCodeChrome();
await conversationActions.hover();
await conversationActions.click();
await page.getByRole('menuitem', { name: '会话编程设置', exact: true }).click();
await expect(page).toHaveURL(/\/project-config\?agent=/);
await expect(page.getByRole('menuitem', { name: '会话编程设置', exact: true })).toHaveCount(0);
await expect(page.getByRole('menuitem', { name: '删除对话', exact: true })).toBeVisible();
await page.keyboard.press('Escape');
await sidebar.getByRole('button', { name: '项目操作:故事绘本', exact: true }).click();
await page.getByRole('menuitem', { name: '项目设置', exact: true }).click();
await expect(page).toHaveURL(/\/project-config$/);
await expect(page.getByTestId('project-configuration-page')).toBeVisible();
await expect(moduleReturn).toBeVisible();
const projectBack = page.getByTestId('project-configuration-back-button');
@@ -531,14 +535,16 @@ test.describe('Makelore module navigation without setup flow', () => {
await page.mouse.move(1000, 500);
await expect.poll(readCodeChrome).toEqual(chatChrome);
await expect(sidebar).toHaveCSS('background-color', 'rgb(243, 247, 251)');
const prompt = page.getByLabel('项目提示词', { exact: true });
await expect(prompt).toBeVisible();
const originalPrompt = await prompt.inputValue();
const defaultModel = page.getByLabel('默认模型', { exact: true });
await expect(defaultModel).toBeVisible();
const originalModel = await defaultModel.inputValue();
await expect(page.getByLabel('项目提示词', { exact: true })).toHaveCount(0);
await expect(page.getByRole('heading', { name: '项目 Skills', exact: true })).toHaveCount(0);
await page.screenshot({ path: test.info().outputPath('project-config-shared-code-sidebar.png') });
// Reload directly on the settings URL, without mounting /chat first.
await page.reload({ waitUntil: 'domcontentloaded' });
await expect(page).toHaveURL(/\/project-config\?agent=/);
await expect(page).toHaveURL(/\/project-config$/);
await expect(page.getByTestId('project-configuration-page')).toBeVisible();
await expect.poll(readCodeChrome).toEqual(chatChrome);
const sidebarToggle = page.getByTestId('titlebar-sidebar-toggle');
@@ -550,7 +556,7 @@ test.describe('Makelore module navigation without setup flow', () => {
await page.mouse.move(1000, 500);
await expect(sidebar).toHaveAttribute('aria-hidden', 'false');
await expect.poll(readCodeChrome).toEqual(chatChrome);
await expect(prompt).toHaveValue(originalPrompt);
await expect(defaultModel).toHaveValue(originalModel);
await projectBack.click();
await expect(page).toHaveURL(/\/chat$/);
await expect(moduleReturn).toBeVisible();