Skip to content
Snippets Groups Projects
Commit 4ad2fbc3 authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Fix broken test

parent 3f7c1686
No related branches found
No related tags found
1 merge request!9369Rename retry failed button on pipeline page to just retry
Pipeline #
Loading
@@ -8,7 +8,7 @@
Loading
@@ -8,7 +8,7 @@
.header-action-buttons .header-action-buttons
- if can?(current_user, :update_pipeline, @pipeline.project) - if can?(current_user, :update_pipeline, @pipeline.project)
- if @pipeline.retryable? - 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? - 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 = 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
   
Loading
Loading
Loading
@@ -226,7 +226,7 @@ describe 'Pipeline', :feature, :js do
Loading
@@ -226,7 +226,7 @@ describe 'Pipeline', :feature, :js do
it { expect(page).not_to have_content('retried') } it { expect(page).not_to have_content('retried') }
   
context 'when retrying' do 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).not_to have_content('Retry') }
it { expect(page).to have_selector('.retried') } it { expect(page).to have_selector('.retried') }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment