Commit 3f7c1686 authored by Filipa Lacerda's avatar Filipa Lacerda

Fix broken test

parent 8b14e164
......@@ -164,7 +164,7 @@ describe 'Pipeline', :feature, :js do
it { expect(page).not_to have_content('retried') }
context 'when retrying' do
before { click_link('Retry', class: 'js-retry-button') }
before { find('.js-retry-button').trigger('click') }
it { expect(page).not_to have_content('Retry') }
end
......@@ -226,7 +226,7 @@ describe 'Pipeline', :feature, :js do
it { expect(page).not_to have_content('retried') }
context 'when retrying' do
before { click_link('Retry', class: 'js-retry-button') }
before { find('js-retry-button').trigger('click') }
it { expect(page).not_to have_content('Retry') }
it { expect(page).to have_selector('.retried') }
......
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