Commit 43777618 authored by Mark Florian's avatar Mark Florian

Merge branch 'add-tooltips-to-junit-report-test-rows' into 'master'

Add tooltips to JUnit report test

See merge request gitlab-org/gitlab!29076
parents 73b7082c 726f71ac
......@@ -3,6 +3,7 @@ import { mapGetters } from 'vuex';
import Icon from '~/vue_shared/components/icon.vue';
import store from '~/pipelines/stores/test_reports';
import { __ } from '~/locale';
import { GlTooltipDirective } from '@gitlab/ui';
import SmartVirtualList from '~/vue_shared/components/smart_virtual_list.vue';
export default {
......@@ -11,6 +12,9 @@ export default {
Icon,
SmartVirtualList,
},
directives: {
GlTooltip: GlTooltipDirective,
},
store,
props: {
heading: {
......@@ -69,12 +73,24 @@ export default {
>
<div class="table-section section-20 section-wrap">
<div role="rowheader" class="table-mobile-header">{{ __('Class') }}</div>
<div class="table-mobile-content pr-md-1 text-truncate">{{ testCase.classname }}</div>
<div
v-gl-tooltip
:title="testCase.classname"
class="table-mobile-content pr-md-1 text-truncate"
>
{{ testCase.classname }}
</div>
</div>
<div class="table-section section-20 section-wrap">
<div role="rowheader" class="table-mobile-header">{{ __('Name') }}</div>
<div class="table-mobile-content pr-md-1 text-truncate">{{ testCase.name }}</div>
<div
v-gl-tooltip
:title="testCase.name"
class="table-mobile-content pr-md-1 text-truncate"
>
{{ testCase.name }}
</div>
</div>
<div class="table-section section-10 section-wrap">
......
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