Commit ba34a265 authored by David O'Regan's avatar David O'Regan Committed by Kushal Pandya

Add full alerts details view

parent 606ad982
......@@ -158,7 +158,15 @@ export default {
</li>
</ul>
</gl-tab>
<gl-tab data-testid="fullDetailsTab" :title="$options.i18n.fullAlertDetailsTitle" />
<gl-tab data-testid="fullDetailsTab" :title="$options.i18n.fullAlertDetailsTitle">
<ul class="list-unstyled">
<li v-for="(value, key) in alert" v-if="key !== '__typename'" :key="key">
<p class="py-1 my-1 gl-font-base">
<strong>{{ key }}: </strong> {{ value }}
</p>
</li>
</ul>
</gl-tab>
</gl-tabs>
</div>
</div>
......
......@@ -127,6 +127,13 @@ describe('AlertDetails', () => {
});
});
describe('View full alert details', () => {
it('should display a unstyled list of alert details', () => {
wrapper.find('[data-testid="fullDetailsTab"]').trigger('click');
expect(wrapper.find('.list-unstyled').exists()).toBe(true);
});
});
describe('loading state', () => {
beforeEach(() => {
mountComponent({ loading: true });
......
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