diff --git a/spec/features/admin/reports_spec.rb b/spec/features/admin/reports_spec.rb index 92bffefebd..78f3b238b8 100644 --- a/spec/features/admin/reports_spec.rb +++ b/spec/features/admin/reports_spec.rb @@ -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'