fix: simplify coding project card rail
This commit is contained in:
@@ -64,6 +64,8 @@ test.describe('Makelore module navigation without setup flow', () => {
|
||||
|
||||
await expect(page).toHaveURL(/\/chat$/);
|
||||
await expect(page.getByRole('button', { name: '新增项目' })).toBeVisible();
|
||||
await expect(page.getByText('已有项目')).toHaveCount(0);
|
||||
await expect(page.getByText('选择一个项目继续')).toHaveCount(0);
|
||||
const projectCards = page.getByTestId('coding-existing-projects');
|
||||
await expect(projectCards).toBeVisible();
|
||||
await expect(projectCards.getByRole('button')).toHaveCount(2);
|
||||
|
||||
@@ -226,6 +226,8 @@ describe('CodingChatPanel first Conversation', () => {
|
||||
expect(screen.getByRole('button', { name: '新增项目' })).toBeInTheDocument();
|
||||
expect(screen.getByTestId('coding-existing-projects')).toHaveTextContent('Local project');
|
||||
expect(screen.getByTestId('coding-existing-projects')).toHaveTextContent('Second local project');
|
||||
expect(screen.queryByText('已有项目')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('选择一个项目继续')).not.toBeInTheDocument();
|
||||
expect(screen.queryByTestId('coding-project-starter')).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: '项目与插件设置' })).not.toBeInTheDocument();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user