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

@@ -50,13 +50,13 @@ function workspaceFixture(): ImageWorkspaceSnapshot {
projects: [{
id: 'project-cloud',
name: '云端角色设定',
activeAgentId: 'agent-default',
activeAgentId: 'agent-manual',
updatedAt: '2026-07-28T10:00:00Z',
agents: [{ id: 'agent-default', name: '视觉创作 Agent' }],
agents: [{ id: 'agent-manual', name: '视觉创作 Agent' }],
messages: [{
id: 'message-result',
role: 'assistant',
agentId: 'agent-default',
agentId: 'agent-manual',
text: '已经为你生成一组角色图。',
status: 'succeeded',
createdAt: '2026-07-28T10:00:00Z',
@@ -139,6 +139,9 @@ describe('ImageCanvas cloud conversation workspace', () => {
);
expect(await screen.findByTestId('image-workspace-page')).toHaveTextContent('云端角色设定');
expect(screen.getByTestId('image-workspace-header')).toHaveTextContent('Canvas');
expect(screen.getByTestId('image-workspace-composer')).toBeInTheDocument();
expect(screen.getByTestId('image-workspace-generation-controls')).toBeInTheDocument();
expect(screen.getByText('当前 Agent视觉创作 Agent')).toBeInTheDocument();
expect(screen.getByTestId('image-workspace-conversation')).toHaveTextContent('已经为你生成一组角色图');
expect(screen.getByRole('img', { name: '云端角色结果' })).toHaveAttribute(
@@ -197,7 +200,7 @@ describe('ImageCanvas cloud conversation workspace', () => {
await waitFor(() => expect(sendImageWorkspaceMessageMock).toHaveBeenCalledWith('access-token', {
projectId: 'project-cloud',
agentId: 'agent-default',
agentId: 'agent-manual',
prompt: '把角色换成夜景光线',
referenceImageIds: ['image-cloud-1'],
settings: {