Fix up test failures in Chrome & Firefox
This commit is contained in:
parent
b72bb8a0ed
commit
1b9a12746d
29 changed files with 145 additions and 78 deletions
|
|
@ -21,7 +21,7 @@ feature Lodging do
|
|||
attach_file 'Picture', path
|
||||
|
||||
click_button 'Create Lodging'
|
||||
|
||||
page.find('#flash')
|
||||
# Validations
|
||||
expect(flash).to eq('Lodging successfully created.')
|
||||
expect(page.has_content?('New lodging')).to be true
|
||||
|
|
@ -47,7 +47,7 @@ feature Lodging do
|
|||
attach_file 'Picture', path
|
||||
|
||||
click_button 'Update Lodging'
|
||||
|
||||
page.find('#flash')
|
||||
# Validations
|
||||
expect(flash).to eq('Lodging successfully updated.')
|
||||
expect(page.has_content?('New lodging')).to be true
|
||||
|
|
@ -67,9 +67,10 @@ feature Lodging do
|
|||
|
||||
expect(page.has_content?(lodging.name)).to be true
|
||||
|
||||
# Add lodging
|
||||
click_link 'Delete'
|
||||
|
||||
page.accept_alert do
|
||||
click_link 'Delete'
|
||||
end
|
||||
page.find('#flash')
|
||||
# Validations
|
||||
expect(flash).to eq('Lodging successfully deleted.')
|
||||
expect(page.has_content?(CGI.escapeHTML(lodging.name))).to be false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue