|
|
|
@ -18,3 +18,8 @@ test("产品需求说明书最终提交保存完整答案并标记为已提交",
|
|
|
|
assert.match(page, /产品需求文档已提交/);
|
|
|
|
assert.match(page, /产品需求文档已提交/);
|
|
|
|
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;/);
|
|
|
|
|
|
|
|
});
|
|
|
|
|