Commit 7421a8ff authored by Nick Thomas's avatar Nick Thomas

Fix a failing spec in spec/features/projects/jobs_spec.rb

parent 74949838
...@@ -393,7 +393,7 @@ feature 'Jobs', :feature do ...@@ -393,7 +393,7 @@ feature 'Jobs', :feature do
visit namespace_project_job_path(project.namespace, project, job) visit namespace_project_job_path(project.namespace, project, job)
click_link 'Cancel' click_link 'Cancel'
page.within('.build-header') do page.within('.build-header') do
click_link 'Retry job' click_link 'Retry'
end end
end end
...@@ -409,7 +409,7 @@ feature 'Jobs', :feature do ...@@ -409,7 +409,7 @@ feature 'Jobs', :feature do
before do before do
job.run! job.run!
visit namespace_project_job_path(project.namespace, project, job) visit namespace_project_job_path(project.namespace, project, job)
click_link 'Cancel' find('.js-cancel-job').click()
page.driver.post(retry_namespace_project_job_path(project.namespace, project, job2)) page.driver.post(retry_namespace_project_job_path(project.namespace, project, job2))
end end
......
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