fix(测试跟踪): 脑图用例校验问题
--bug=1015664 --user=宋昌昌 【测试跟踪】脑图模式添加用例,前置条件/备注添加多个仍可以保存 https://www.tapd.cn/55049933/s/1221877
This commit is contained in:
parent
c46b4ed566
commit
47bec24cf4
|
@ -464,6 +464,14 @@ name: "TestCaseMinder",
|
|||
let steps = [];
|
||||
let stepNum = 1;
|
||||
if (node.children) {
|
||||
let prerequisiteNodes = node.children.filter(childNode => childNode.data.resource && childNode.data.resource.indexOf(this.$t('test_track.case.prerequisite')) > -1);
|
||||
if (prerequisiteNodes.length > 1) {
|
||||
this.throwError('[' + testCase.name + ']' + this.$t('test_track.case.exists_multiple_prerequisite_node'));
|
||||
}
|
||||
let remarkNodes = node.children.filter(childNode => childNode.data.resource && childNode.data.resource.indexOf(this.$t('commons.remark')) > -1);
|
||||
if (remarkNodes.length > 1) {
|
||||
this.throwError('[' + testCase.name + ']' + this.$t('test_track.case.exists_multiple_remark_node'));
|
||||
}
|
||||
node.children.forEach((childNode) => {
|
||||
let childData = childNode.data;
|
||||
if (childData.type === 'issue') return;
|
||||
|
|
|
@ -2222,7 +2222,9 @@ export default {
|
|||
export_tip: "Switch to Case List and check Use Case Export"
|
||||
},
|
||||
case_desc: "Case Desc",
|
||||
passing_rate: 'Case Pass Rate'
|
||||
passing_rate: 'Case Pass Rate',
|
||||
exists_multiple_prerequisite_node: "Exists multiple precondition node",
|
||||
exists_multiple_remark_node: "Exists multiple remark node",
|
||||
},
|
||||
plan: {
|
||||
test_plan: "Plan",
|
||||
|
|
|
@ -2223,6 +2223,8 @@ export default {
|
|||
passing_rate: '用例通过率',
|
||||
version: "版本",
|
||||
sync_to_new_version: "复制以下信息到新版本",
|
||||
exists_multiple_prerequisite_node: "下存在多个前置条件",
|
||||
exists_multiple_remark_node: "下存在多个备注",
|
||||
},
|
||||
plan: {
|
||||
test_plan: "测试计划",
|
||||
|
|
|
@ -2217,6 +2217,8 @@ export default {
|
|||
case_desc: "用例描述",
|
||||
passing_rate: '用例通過率',
|
||||
sync_to_new_version: "復製以下信息到新版本",
|
||||
exists_multiple_prerequisite_node: "下存在多個前置條件",
|
||||
exists_multiple_remark_node: "下存在多個備註"
|
||||
},
|
||||
plan: {
|
||||
test_plan: "測試計劃",
|
||||
|
|
Loading…
Reference in New Issue