Decouple tests from unspecified data ordering
These tests have been passing with SQLite, but don't reflect guaranteed behavior and with PostgreSQL failed intermittently.
This commit is contained in:
parent
e6f3aa559e
commit
a7006a4edd
5 changed files with 26 additions and 27 deletions
|
|
@ -66,7 +66,7 @@ feature Role do
|
|||
scenario "removes role #{role_name}", feature: true, js: true do
|
||||
click_link('Users', href: admin_conference_role_path(conference.short_title, role_name))
|
||||
|
||||
bootstrap_switch = first('td').find('.bootstrap-switch-container')
|
||||
bootstrap_switch = find('tr', text: user_with_role.name).find('.bootstrap-switch-container')
|
||||
bootstrap_switch.click
|
||||
|
||||
expect(page).to have_css('.alert', text: "Successfully removed role #{role_name} from user #{user_with_role.email}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue