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
|
|
@ -16,7 +16,7 @@ feature Splashpage do
|
|||
|
||||
click_link 'Create Splashpage'
|
||||
click_button 'Save Changes'
|
||||
|
||||
page.find('#flash')
|
||||
expect(flash).to eq('Splashpage successfully created.')
|
||||
expect(current_path).to eq(admin_conference_splashpage_path(conference.short_title))
|
||||
expect(page.has_text?('Private')).to be true
|
||||
|
|
@ -32,7 +32,7 @@ feature Splashpage do
|
|||
click_link 'Edit'
|
||||
check('Make splash page public')
|
||||
click_button 'Save Changes'
|
||||
|
||||
page.find('#flash')
|
||||
expect(flash).to eq('Splashpage successfully updated.')
|
||||
expect(current_path).to eq(admin_conference_splashpage_path(conference.short_title))
|
||||
expect(page.has_text?('Public')).to be true
|
||||
|
|
@ -45,7 +45,8 @@ feature Splashpage do
|
|||
sign_in organizer
|
||||
visit admin_conference_splashpage_path(conference.short_title)
|
||||
click_link 'Delete'
|
||||
|
||||
page.accept_alert
|
||||
page.find('#flash')
|
||||
expect(current_path).to eq(admin_conference_splashpage_path(conference.short_title))
|
||||
expect(flash).to eq('Splashpage was successfully destroyed.')
|
||||
expect(Splashpage.count).to eq(0)
|
||||
|
|
@ -60,7 +61,7 @@ feature Splashpage do
|
|||
scenario 'splashpage is not accessible for participants if it is not public' do
|
||||
sign_in participant
|
||||
visit conference_path(conference.short_title)
|
||||
|
||||
page.find('#flash')
|
||||
expect(flash).to eq('You are not authorized to access this page.')
|
||||
expect(current_path).to eq(root_path)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue