diff --git a/tests/features/workflows/pages.test.ts b/tests/features/workflows/pages.test.ts index d216bb2..c2ddc26 100644 --- a/tests/features/workflows/pages.test.ts +++ b/tests/features/workflows/pages.test.ts @@ -70,11 +70,24 @@ let wrapper: VueWrapper | undefined /** 使用真实上下文形状,不绕过页面内的异步操作与按钮守卫。 */ function context(): ReturnType { - const data = ref({ project: fixture, checkpoints: [] as Checkpoint[] }) + const data = ref({ + project: fixture, + checkpoints: [] as Checkpoint[], + stageReadiness: { + projectId: fixture.id, + script: { ready: true, reason: null }, + breakdown: { ready: true, reason: null }, + visualStyle: { ready: true, reason: null }, + identity: { ready: true, reason: null }, + subjectAssets: { ready: true, reason: null }, + storyboard: { ready: true, reason: null } + } + }) return { data, project: computed(() => data.value.project), checkpoints: computed(() => data.value.checkpoints), + stageReadiness: computed(() => data.value.stageReadiness), loading: ref(false), error: ref(''), updatedAt: ref(''),