summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-21 16:50:21 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-02-21 16:50:21 +0000
commit4ad2fbc35ced9d42186606e426b66857f9a7d54f (patch)
tree1fe4d2e49b42b066169534f26685c2241052930f
parent3f7c1686790b3c54925be0aabc74c0d22b09e752 (diff)
downloadgitlab-ce-4ad2fbc35ced9d42186606e426b66857f9a7d54f.tar.gz
Fix broken test
-rw-r--r--app/views/projects/pipelines/_info.html.haml2
-rw-r--r--spec/features/projects/pipelines/pipeline_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/pipelines/_info.html.haml b/app/views/projects/pipelines/_info.html.haml
index 59e50d25460..0605af4fcd3 100644
--- a/app/views/projects/pipelines/_info.html.haml
+++ b/app/views/projects/pipelines/_info.html.haml
@@ -8,7 +8,7 @@
.header-action-buttons
- if can?(current_user, :update_pipeline, @pipeline.project)
- if @pipeline.retryable?
- = link_to "Retry", retry_namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), class: 'btn btn-inverted-secondary', method: :post
+ = link_to "Retry", retry_namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), class: 'js-retry-button btn btn-inverted-secondary', method: :post
- if @pipeline.cancelable?
= link_to "Cancel running", cancel_namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb
index 9cae000388f..9f06e52ab55 100644
--- a/spec/features/projects/pipelines/pipeline_spec.rb
+++ b/spec/features/projects/pipelines/pipeline_spec.rb
@@ -226,7 +226,7 @@ describe 'Pipeline', :feature, :js do
it { expect(page).not_to have_content('retried') }
context 'when retrying' do
- before { find('js-retry-button').trigger('click') }
+ before { find('.js-retry-button').trigger('click') }
it { expect(page).not_to have_content('Retry') }
it { expect(page).to have_selector('.retried') }