fix: clarify requirements document preview action

bugfix/ai-assessment-evidence-rescore
陈沅 1 month ago
parent 0d76d7f078
commit e969205458

@ -16,7 +16,7 @@
</div>
<div class="workbench-actions">
<TrainingMaterialButton :material-name="taskConfig?.materialName" :material-url="taskConfig?.materialUrl" />
<button type="button" class="outline-action" @click="exportOutcome"><el-icon><Download /></el-icon>导出实训成果</button>
<button type="button" class="outline-action" @click="exportOutcome"><el-icon><Download /></el-icon>{{ currentStep === 3 ? '预览产品需求说明书' : '导出实训成果' }}</button>
</div>
</div>

@ -18,3 +18,8 @@ test("产品需求说明书最终提交保存完整答案并标记为已提交",
assert.match(page, /产品需求文档已提交/);
assert.match(page, /提交失败,请稍后重试/);
});
test("产品需求说明书第3步将顶部导出操作明确为文档预览", () => {
assert.match(page, /\{\{ currentStep === 3 \? '预览产品需求说明书' : '导出实训成果' \}\}/);
assert.match(page, /function exportOutcome\(\)[\s\S]*?currentStep\.value === 3 && isDocumentReady\.value\) \{ showDocumentPreview\.value = true;/);
});

Loading…
Cancel
Save