feat: update Makelore modules and conversations
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user