Auto-open draft result after foundation completes
This commit is contained in:
@@ -42,4 +42,35 @@ describe('normalizeCustomWorldProfileRecord role asset descriptions', () => {
|
||||
expect(profile?.storyNpcs[0]?.actionDescription).toContain('印信');
|
||||
expect(profile?.storyNpcs[0]?.sceneVisualDescription).toContain('议会厅');
|
||||
});
|
||||
|
||||
it('保留 Agent 发布门槛需要的顶层 worldHook 和 playerPremise', () => {
|
||||
const profile = normalizeCustomWorldProfileRecord({
|
||||
name: '雾港归航',
|
||||
settingText: '海雾旧案',
|
||||
summary: '海雾会吞掉记错航线的人。',
|
||||
worldHook: '在失真的海图上追查一场被篡改的沉船事故。',
|
||||
playerPremise: '玩家是返乡调查旧案的守灯人。',
|
||||
sceneChapterBlueprints: [
|
||||
{
|
||||
id: 'scene-chapter-1',
|
||||
sceneId: 'landmark-1',
|
||||
title: '失灯港',
|
||||
acts: [
|
||||
{
|
||||
id: 'act-1',
|
||||
title: '第一幕',
|
||||
summary: '玩家在雾港发现灯册被改写。',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
expect(profile?.worldHook).toBe(
|
||||
'在失真的海图上追查一场被篡改的沉船事故。',
|
||||
);
|
||||
expect(profile?.playerPremise).toBe('玩家是返乡调查旧案的守灯人。');
|
||||
expect(profile?.sceneChapterBlueprints?.[0]?.acts).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user