refactor: 执行结果不填时,测试用例可通过

This commit is contained in:
chenjianxing 2020-08-07 19:22:17 +08:00
parent 6d6506a3cb
commit 1582a46534
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@
},
test: {},
activeTab: 'detail',
isFailure: false,
isFailure: true,
};
},
props: {
@ -447,7 +447,7 @@
stepResultChange() {
if (this.testCase.method == 'manual') {
this.isFailure = this.testCase.steptResults.filter(s => {
return !s.executeResult || s.executeResult === 'Failure' || s.executeResult === 'Blocking';
return s.executeResult === 'Failure' || s.executeResult === 'Blocking';
}).length > 0;
}