Skip to content

Commit a5bf2d4

Browse files
kevinmessiaenmattbit
authored andcommitted
Fixed display
1 parent 346d250 commit a5bf2d4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

frontend/src/views/main/project/TestSuiteExecutionHeader.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,28 @@
33
<v-alert :color='testResultStyle.color' :icon='testResultStyle.icon' class='flex-grow-1' prominent
44
text>
55
<v-row align='center'>
6-
<v-col class='grow'>
6+
<v-col class='grow d-flex flex-wrap'>
77
<h4 v-if='!props.execution' class='text-alert'>
88
No execution has been performed yet!
99
</h4>
1010
<h4 v-else-if='props.execution.result === TestResult.ERROR' class='text-alert d-flex flex-wrap'>
1111
An error occurred during the execution. Executed <strong class='ml-2'>{{
1212
timeSince(execution.executionDate)
1313
}}</strong>
14-
<v-spacer />
15-
<v-btn color='error' small @click='openLogs'>execution logs.</v-btn>
1614
</h4>
17-
<h4 v-else class='text-alert d-flex flex-wrap'>Test suite
15+
<h4 v-else class='text-alert'>Test suite
1816
{{ props.execution.result === TestResult.PASSED ? 'passed' : 'failed' }}:
1917
<span v-if='successRatio.failed > 0'>{{ plurialize('test', successRatio.failed) }} failed</span>
2018
<span v-if='successRatio.failed > 0 && successRatio.passed > 0'>, </span>
2119
<span v-if='successRatio.passed > 0'>{{ plurialize('test', successRatio.passed) }} passed</span>
2220
<span v-if='successRatio.failed > 0 || successRatio.passed > 0'>. </span>
2321
<span>Executed {{ timeSince(execution.executionDate) }}</span>
24-
<v-spacer />
25-
<v-btn :color="props.execution?.result === TestResult.PASSED ? 'primary' : 'error'" small
26-
@click='openLogs'>execution logs
27-
</v-btn>
2822
</h4>
23+
<v-spacer />
24+
<v-btn v-if='props.execution' :color="props.execution.result === TestResult.PASSED ? 'primary' : 'error'"
25+
small
26+
@click='openLogs'>execution logs
27+
</v-btn>
2928
</v-col>
3029
</v-row>
3130
</v-alert>

0 commit comments

Comments
 (0)