feat: update Makelore modules and conversations
This commit is contained in:
@@ -120,7 +120,7 @@ describe('Login page', () => {
|
||||
updatedAt: '2026-07-12T00:00:00.000Z',
|
||||
lastOpenedAt: '2026-07-12T00:00:00.000Z',
|
||||
};
|
||||
const config = { ...createProjectConfig('standard-development'), initialized: true };
|
||||
const config = { ...createProjectConfig(), initialized: true };
|
||||
useOpencodeStore.setState({ projects: [project], activeProject: project });
|
||||
hostApiFetchMock.mockImplementation(async (path: string) => {
|
||||
if (path === '/api/opencode/projects') return { projects: [project], activeProject: project };
|
||||
@@ -162,7 +162,8 @@ describe('Login page', () => {
|
||||
</MemoryRouter>,
|
||||
);
|
||||
|
||||
expect(await screen.findByText('请先新建项目')).toBeInTheDocument();
|
||||
expect(await screen.findByText('一念成光,万物可创。')).toBeInTheDocument();
|
||||
expect(screen.queryByText('请先新建项目')).not.toBeInTheDocument();
|
||||
expect(screen.queryByTestId('chat-operation-page')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
@@ -176,7 +177,7 @@ describe('Login page', () => {
|
||||
updatedAt: '2026-07-12T00:00:00.000Z',
|
||||
lastOpenedAt: '2026-07-12T00:00:00.000Z',
|
||||
};
|
||||
const config = { ...createProjectConfig('standard-development'), initialized: false };
|
||||
const config = { ...createProjectConfig(), initialized: false };
|
||||
useOpencodeStore.setState({ projects: [project], activeProject: project });
|
||||
hostApiFetchMock.mockImplementation(async (path: string) => {
|
||||
if (path === '/api/opencode/projects') return { projects: [project], activeProject: project };
|
||||
@@ -196,7 +197,7 @@ describe('Login page', () => {
|
||||
</MemoryRouter>,
|
||||
);
|
||||
|
||||
expect(await screen.findByText('在这里配置你的项目基础!')).toBeInTheDocument();
|
||||
expect(await screen.findByText('配置你的项目空间')).toBeInTheDocument();
|
||||
expect(screen.queryByTestId('chat-operation-page')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user