mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Update report spec for background reports
This commit is contained in:
@@ -98,7 +98,6 @@ RSpec.configure do |config|
|
||||
Flipper.disable(:background_reports) if example.file_path.in?(
|
||||
[
|
||||
# rubocop:disable Layout/LineLength
|
||||
"./spec/system/admin/reports/enterprise_fee_summaries_spec.rb",
|
||||
"./spec/system/admin/reports/enterprise_summary_fees/enterprise_summary_fee_with_tax_report_by_order_spec.rb",
|
||||
"./spec/system/admin/reports/enterprise_summary_fees/enterprise_summary_fee_with_tax_report_by_producer_spec.rb",
|
||||
"./spec/system/admin/reports/orders_and_fulfillment_spec.rb",
|
||||
|
||||
@@ -94,6 +94,8 @@ describe "enterprise fee summaries" do
|
||||
it "generates file with data for all enterprises" do
|
||||
select "CSV"
|
||||
click_on "Go"
|
||||
perform_enqueued_jobs(only: ReportJob)
|
||||
click_on "Download Report"
|
||||
expect(downloaded_filename).to include ".csv"
|
||||
expect(downloaded_content).to have_content(distributor.name)
|
||||
end
|
||||
@@ -117,6 +119,8 @@ describe "enterprise fee summaries" do
|
||||
it "generates file with data for the enterprise" do
|
||||
select "CSV"
|
||||
click_on "Go"
|
||||
perform_enqueued_jobs(only: ReportJob)
|
||||
click_on "Download Report"
|
||||
|
||||
expect(downloaded_filename).to include ".csv"
|
||||
expect(downloaded_content).to have_content(distributor.name)
|
||||
@@ -151,6 +155,8 @@ describe "enterprise fee summaries" do
|
||||
find("#report_format").click
|
||||
select "CSV"
|
||||
click_on "Go"
|
||||
perform_enqueued_jobs(only: ReportJob)
|
||||
click_on "Download Report"
|
||||
|
||||
expect(downloaded_filename).to include ".csv"
|
||||
expect(downloaded_content).to have_content(distributor.name)
|
||||
|
||||
Reference in New Issue
Block a user