feat: update Makelore modules and conversations
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-07-31 10:08:41 +08:00
parent b8ca3f8eea
commit 80e8386fa6
175 changed files with 8036 additions and 10581 deletions

View File

@@ -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();
});