From ee2520a1f667f9ab6e68bbed0e6ff8099e7e34b4 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 8 Sep 2023 12:02:33 +1000 Subject: [PATCH] Visit page directly to save time Shaved a couple of seconds off, 35->33 sec. And make it easier to hide from the list. --- ...terprise_summary_fee_with_tax_report_by_producer_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/system/admin/reports/enterprise_summary_fees/enterprise_summary_fee_with_tax_report_by_producer_spec.rb b/spec/system/admin/reports/enterprise_summary_fees/enterprise_summary_fee_with_tax_report_by_producer_spec.rb index b71cc59dde..8fb6731421 100644 --- a/spec/system/admin/reports/enterprise_summary_fees/enterprise_summary_fee_with_tax_report_by_producer_spec.rb +++ b/spec/system/admin/reports/enterprise_summary_fees/enterprise_summary_fee_with_tax_report_by_producer_spec.rb @@ -947,8 +947,10 @@ describe "Enterprise Summary Fee with Tax Report By Producer" do def visit_report login_as distributor_owner - visit admin_reports_path - click_on "Enterprise Fees With Tax Report By Producer" + visit admin_report_path( + report_type: :enterprise_fee_summary, + report_subtype: :enterprise_fees_with_tax_report_by_producer + ) expect(page).to have_button("Go") end end