fix: 页面测试上下文补齐制作阶段状态
This commit is contained in:
1 parent
258c511789
commit
ac57a33a4b
1 file changed
+14
-1
@@ -70,11 +70,24 @@ let wrapper: VueWrapper | undefined
|
||||
|
||||
/** 使用真实上下文形状,不绕过页面内的异步操作与按钮守卫。 */
|
||||
function context(): ReturnType<typeof useProjectData> {
|
||||
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(''),
|
||||
|
||||
Reference in new issue
Block a user