fix count in spec
This commit is contained in:
parent
2511a7dd51
commit
5d444143ea
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ feature EventType do
|
|||
conference_id: conference.short_title)
|
||||
|
||||
within('table#event_types') do
|
||||
expect(page.assert_selector('tr', count: 3)).to be true
|
||||
expect(page.assert_selector('tr', count: 4)).to be true
|
||||
end
|
||||
|
||||
# Add event type
|
||||
|
|
@ -33,7 +33,7 @@ feature EventType do
|
|||
expect(page.has_content?('Party')).to be true
|
||||
expect(page.has_content?('13042')).to be true
|
||||
expect(page.has_content?('#e4e4e4')).to be true
|
||||
expect(page.assert_selector('tr', count: 4)).to be true
|
||||
expect(page.assert_selector('tr', count: 5)).to be true
|
||||
end
|
||||
|
||||
# Remove event type
|
||||
|
|
@ -43,7 +43,7 @@ feature EventType do
|
|||
expect(flash).to eq('Event type successfully deleted.')
|
||||
|
||||
within('table#event_types') do
|
||||
expect(page.assert_selector('tr', count: 3)).to be true
|
||||
expect(page.assert_selector('tr', count: 4)).to be true
|
||||
expect(page.has_content?('Party')).to be false
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue