Fix up test failures in Chrome & Firefox

This commit is contained in:
James Mason 2018-10-25 16:16:56 -07:00
parent b72bb8a0ed
commit 1b9a12746d
29 changed files with 145 additions and 78 deletions

View file

@ -22,7 +22,7 @@ feature DifficultyLevel do
page.find('#difficulty_level_color').set('#ff0000')
click_button 'Create Difficulty level'
page.find('#flash')
# Validations
expect(flash).to eq('Difficulty level successfully created.')
within('table#difficulty_levels') do
@ -40,9 +40,12 @@ feature DifficultyLevel do
conference_id: conference.short_title)
# Remove difficulty level
within('table tr:nth-of-type(4)') do
click_link 'Delete'
page.accept_alert do
within('table tr:nth-of-type(4)') do
click_link 'Delete'
end
end
page.find('#flash')
# Validations
expect(flash).to eq('Difficulty level successfully deleted.')