Commit 875dd6b7 authored by Scott Hampton's avatar Scott Hampton

Use badge for recent failures

Use a badge for the recent failures message to
be consistent with the MR widget version.

Also added feature to documentation.
parent a3d69a9e
<script>
import { GlModal } from '@gitlab/ui';
import { GlBadge, GlModal } from '@gitlab/ui';
import { __, n__, sprintf } from '~/locale';
import CodeBlock from '~/vue_shared/components/code_block.vue';
......@@ -7,6 +7,7 @@ export default {
name: 'TestCaseDetails',
components: {
CodeBlock,
GlBadge,
GlModal,
},
props: {
......@@ -76,7 +77,7 @@ export default {
<div v-if="testCase.recent_failures" class="gl-display-flex gl-flex-wrap gl-mx-n4 gl-my-3">
<strong class="gl-text-right col-sm-3">{{ $options.text.history }}</strong>
<div class="col-sm-9" data-testid="test-case-recent-failures">
{{ failureHistoryMessage }}
<gl-badge variant="warning">{{ failureHistoryMessage }}</gl-badge>
</div>
</div>
......
......@@ -67,8 +67,9 @@ execution time and the error output.
### Number of recent failures
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/241759) in GitLab 13.7.
> - [Introduced in Merge Requests](https://gitlab.com/gitlab-org/gitlab/-/issues/241759) in GitLab 13.7.
> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/268249) in GitLab 13.8.
> - [Introduced in Test Reports](https://gitlab.com/gitlab-org/gitlab/-/issues/235525) in GitLab 13.9.
If a test failed in the project's default branch in the last 14 days, a message like
`Failed {n} time(s) in {default_branch} in the last 14 days` is displayed for that test.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment