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: {}, test: {},
activeTab: 'detail', activeTab: 'detail',
isFailure: false, isFailure: true,
}; };
}, },
props: { props: {
@ -447,7 +447,7 @@
stepResultChange() { stepResultChange() {
if (this.testCase.method == 'manual') { if (this.testCase.method == 'manual') {
this.isFailure = this.testCase.steptResults.filter(s => { 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; }).length > 0;
} }