mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Tighten test
This commit is contained in:
@@ -137,9 +137,9 @@ feature %q{
|
||||
end
|
||||
|
||||
it "displays the report" do
|
||||
page.should have_content "#{user1.enterprises.first.name}" #listed in distributors dropdown
|
||||
page.should_not have_content "#{user2.enterprises.first.name}" #not listed
|
||||
|
||||
page.should have_select 'q_distributor_id_eq', with_options: [user1.enterprises.first.name]
|
||||
page.should_not have_select 'q_distributor_id_eq', with_options: [user2.enterprises.first.name]
|
||||
|
||||
select user1.enterprises.first.name, from: 'q_distributor_id_eq'
|
||||
click_button 'Search'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user