删除上传文件后触发项目重新打标
This commit is contained in:
21
ruoyi-ui/tests/unit/upload-data-delete-retag-copy.test.js
Normal file
21
ruoyi-ui/tests/unit/upload-data-delete-retag-copy.test.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const componentPath = path.resolve(
|
||||
__dirname,
|
||||
"../../src/views/ccdiProject/components/detail/UploadData.vue"
|
||||
);
|
||||
const source = fs.readFileSync(componentPath, "utf8");
|
||||
|
||||
assert(
|
||||
/删除[^"]*重新打标[^"]*是否继续/.test(source),
|
||||
"删除确认框应明确提示即将重新打标"
|
||||
);
|
||||
|
||||
assert(
|
||||
/删除成功,已开始项目重新打标/.test(source),
|
||||
"删除成功提示应明确告知已开始项目重新打标"
|
||||
);
|
||||
|
||||
console.log("upload-data-delete-retag-copy test passed");
|
||||
Reference in New Issue
Block a user