Stabilizing a randomly failing test
This commit is contained in:
parent
f2b5c2627c
commit
fc64542202
1 changed files with 8 additions and 1 deletions
|
|
@ -36,7 +36,14 @@ feature Sponsor do
|
|||
end
|
||||
|
||||
# Remove sponsor
|
||||
click_link 'Delete'
|
||||
visit admin_conference_sponsors_path(
|
||||
conference_id: conference.short_title
|
||||
)
|
||||
within('table#sponsors') do
|
||||
page.accept_confirm do
|
||||
click_link 'Delete'
|
||||
end
|
||||
end
|
||||
expect(flash).to eq('Sponsor successfully deleted.')
|
||||
expect(page).to_not have_selector('table#sponsors')
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue