Commit ae1be64b authored by Mike Greiling's avatar Mike Greiling

accept confirmation modal when erasing job trace in user_browses_job_spec.rb

parent d5bee2c6
...@@ -21,12 +21,12 @@ describe 'User browses a job', :js do ...@@ -21,12 +21,12 @@ describe 'User browses a job', :js do
expect(page).to have_content("Job ##{build.id}") expect(page).to have_content("Job ##{build.id}")
expect(page).to have_css('#build-trace') expect(page).to have_css('#build-trace')
click_link('Erase') accept_confirm { click_link('Erase') }
expect(page).to have_no_css('.artifacts')
expect(build).not_to have_trace expect(build).not_to have_trace
expect(build.artifacts_file.exists?).to be_falsy expect(build.artifacts_file.exists?).to be_falsy
expect(build.artifacts_metadata.exists?).to be_falsy expect(build.artifacts_metadata.exists?).to be_falsy
expect(page).to have_no_css('.artifacts')
page.within('.erased') do page.within('.erased') do
expect(page).to have_content('Job has been erased') expect(page).to have_content('Job has been erased')
......
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