Commit c2d943a7 authored by Filipa Lacerda's avatar Filipa Lacerda

Changes after review

parent 4ad8c999
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
}, },
viewType: { viewType: {
type: String, type: String,
required: false, required: true,
}, },
}, },
components: { components: {
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
}, },
viewType: { viewType: {
type: String, type: String,
required: false, required: true,
}, },
}, },
components: { components: {
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
:href="status.details_path" :href="status.details_path"
:class="cssClass" :class="cssClass"
v-tooltip v-tooltip
:title="status.text"> :title="!showText ? status.text : ''">
<ci-icon :status="status" /> <ci-icon :status="status" />
<template v-if="showText"> <template v-if="showText">
......
...@@ -10,6 +10,7 @@ describe('Pipelines Table Row', () => { ...@@ -10,6 +10,7 @@ describe('Pipelines Table Row', () => {
propsData: { propsData: {
pipeline, pipeline,
autoDevopsHelpPath: 'foo', autoDevopsHelpPath: 'foo',
viewType: 'root',
}, },
}).$mount(); }).$mount();
}; };
......
...@@ -23,6 +23,7 @@ describe('Pipelines Table', () => { ...@@ -23,6 +23,7 @@ describe('Pipelines Table', () => {
propsData: { propsData: {
pipelines: [], pipelines: [],
autoDevopsHelpPath: 'foo', autoDevopsHelpPath: 'foo',
viewType: 'root',
}, },
}).$mount(); }).$mount();
}); });
...@@ -49,6 +50,7 @@ describe('Pipelines Table', () => { ...@@ -49,6 +50,7 @@ describe('Pipelines Table', () => {
propsData: { propsData: {
pipelines: [], pipelines: [],
autoDevopsHelpPath: 'foo', autoDevopsHelpPath: 'foo',
viewType: 'root',
}, },
}).$mount(); }).$mount();
expect(component.$el.querySelectorAll('.commit.gl-responsive-table-row').length).toEqual(0); expect(component.$el.querySelectorAll('.commit.gl-responsive-table-row').length).toEqual(0);
...@@ -61,6 +63,7 @@ describe('Pipelines Table', () => { ...@@ -61,6 +63,7 @@ describe('Pipelines Table', () => {
propsData: { propsData: {
pipelines: [pipeline], pipelines: [pipeline],
autoDevopsHelpPath: 'foo', autoDevopsHelpPath: 'foo',
viewType: 'root',
}, },
}).$mount(); }).$mount();
......
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