Various small fixes for the participant UI
This commit is contained in:
parent
b6abe96279
commit
d13efa5f52
31 changed files with 287 additions and 279 deletions
|
|
@ -26,7 +26,7 @@ feature DifficultyLevel do
|
|||
within('table#difficulty_levels') do
|
||||
expect(page.has_content?('Hard')).to be true
|
||||
expect(page.has_content?('Life is the hardest')).to be true
|
||||
expect(page.assert_selector('tr', count: 2)).to be true
|
||||
expect(page.assert_selector('tr', count: 5)).to be true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -38,12 +38,17 @@ feature DifficultyLevel do
|
|||
conference_id: conference.short_title)
|
||||
|
||||
# Remove difficulty level
|
||||
click_link 'Delete'
|
||||
within('table tr:nth-of-type(4)') do
|
||||
click_link 'Delete'
|
||||
end
|
||||
|
||||
# Validations
|
||||
expect(flash).to eq('Difficulty level successfully deleted.')
|
||||
within('table#difficulty_levels') do
|
||||
expect(page.assert_selector('tr', count: 1)).to be true
|
||||
expect(page.assert_selector('tr', count: 4)).to be true
|
||||
expect(page.has_content?('Easy Events')).to be true
|
||||
expect(page.has_content?('Medium Events')).to be true
|
||||
expect(page.has_content?('Hard Events')).to be true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue