This commit is contained in:
2026-04-16 15:45:00 +08:00
parent 6363267bca
commit 91b63675eb
43 changed files with 5652 additions and 853 deletions

View File

@@ -3,7 +3,7 @@ import { expect, test } from 'vitest';
import { CustomWorldAgentWorkspace } from './CustomWorldAgentWorkspace';
test('custom world agent workspace renders progress labels, action button and recommended replies', () => {
test('custom world agent workspace renders draft workspace instead of chat after draft cards appear', () => {
const html = renderToStaticMarkup(
<CustomWorldAgentWorkspace
session={{
@@ -87,10 +87,11 @@ test('custom world agent workspace renders progress labels, action button and re
/>,
);
expect(html).toContain('首轮草稿会先确认这 6 项信息');
expect(html).toContain('世界核心');
expect(html).toContain('玩家开局');
expect(html).toContain('现在开始生成草稿');
expect(html).toContain('开始生成草稿');
expect(html).toContain('欢迎。当前底稿已经可以继续精修。');
expect(html).toContain('卡片详情');
expect(html).toContain('快捷动作');
expect(html).toContain('草稿抽屉');
expect(html).not.toContain('首轮草稿会先确认这 6 项信息');
expect(html).not.toContain('现在开始生成草稿');
expect(html).not.toContain('欢迎。当前底稿已经可以继续精修。');
expect(html).not.toContain('输入消息');
});