diff --git a/spec/system/admin/reports/users_and_enterprises_spec.rb b/spec/system/admin/reports/users_and_enterprises_spec.rb index 858ed2ec6e..ff3f49aaf4 100644 --- a/spec/system/admin/reports/users_and_enterprises_spec.rb +++ b/spec/system/admin/reports/users_and_enterprises_spec.rb @@ -5,14 +5,14 @@ require 'system_helper' describe "Users & Enterprises reports" do include AuthenticationHelper - let!(:enterprise) { create(:supplier_enterprise) } - before do login_as_admin visit main_app.admin_report_path(report_type: 'users_and_enterprises') end it "displays the report" do + enterprise = create(:supplier_enterprise) + click_button 'Go' expect(page.find("table.report__table thead tr").text).to have_content([