diff options
4 files changed, 6 insertions, 7 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/components/pipelines_actions.js b/app/assets/javascripts/vue_pipelines_index/components/pipelines_actions.js index f19b91ad9de..bd0e3a123a2 100644 --- a/app/assets/javascripts/vue_pipelines_index/components/pipelines_actions.js +++ b/app/assets/javascripts/vue_pipelines_index/components/pipelines_actions.js @@ -57,7 +57,7 @@ export default { <li v-for="action in actions"> <button type="button" - class="no-btn" + class="js-pipeline-action-link no-btn" @click="onClickAction(action.path)"> ${playIconSvg} <span>{{action.name}}</span> diff --git a/spec/javascripts/vue_pipelines_index/async_button_spec.js b/spec/javascripts/vue_pipelines_index/async_button_spec.js index 709a06dda8e..47e78fed3f9 100644 --- a/spec/javascripts/vue_pipelines_index/async_button_spec.js +++ b/spec/javascripts/vue_pipelines_index/async_button_spec.js @@ -27,11 +27,10 @@ describe('Pipelines Async Button', () => { it('should render a button', () => { expect(component.$el.tagName).toEqual('BUTTON'); - expect(component.$el.getAttribute('title')).toEqual('Cancel'); }); it('should render the provided icon', () => { - expect(component.$el.querySelector('i').getAttribute('class')).toContain('bar'); + expect(component.$el.querySelector('i').getAttribute('class')).toContain('fa fa-foo'); }); it('should render the provided title', () => { diff --git a/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js b/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js index 412abfd5e41..d24ec8a1aa1 100644 --- a/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js +++ b/spec/javascripts/vue_shared/components/pipelines_table_row_spec.js @@ -12,7 +12,7 @@ describe('Pipelines Table Row', () => { el: document.querySelector('.test-dom-element'), propsData: { pipeline, - svgs: {}, + service: {}, }, }); }); diff --git a/spec/javascripts/vue_shared/components/pipelines_table_spec.js b/spec/javascripts/vue_shared/components/pipelines_table_spec.js index 54d81e2ea7d..7abeb31b8fe 100644 --- a/spec/javascripts/vue_shared/components/pipelines_table_spec.js +++ b/spec/javascripts/vue_shared/components/pipelines_table_spec.js @@ -16,7 +16,7 @@ describe('Pipelines Table', () => { el: document.querySelector('.test-dom-element'), propsData: { pipelines: [], - svgs: {}, + service: {}, }, }); }); @@ -41,7 +41,7 @@ describe('Pipelines Table', () => { el: document.querySelector('.test-dom-element'), propsData: { pipelines: [], - svgs: {}, + service: {}, }, }); expect(component.$el.querySelectorAll('tbody tr').length).toEqual(0); @@ -54,7 +54,7 @@ describe('Pipelines Table', () => { el: document.querySelector('.test-dom-element'), propsData: { pipelines: [pipeline], - svgs: {}, + service: {}, }, }); |