accept confirmation modal when erasing job trace in user_browses_job_spec.rb
This commit is contained in:
parent
d5bee2c6e0
commit
ae1be64b66
1 changed files with 2 additions and 2 deletions
|
@ -21,12 +21,12 @@ describe 'User browses a job', :js do
|
|||
expect(page).to have_content("Job ##{build.id}")
|
||||
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.artifacts_file.exists?).to be_falsy
|
||||
expect(build.artifacts_metadata.exists?).to be_falsy
|
||||
expect(page).to have_no_css('.artifacts')
|
||||
|
||||
page.within('.erased') do
|
||||
expect(page).to have_content('Job has been erased')
|
||||
|
|
Loading…
Reference in a new issue