From 131474e91d58e78e200293bb674bced1aec664a7 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 17 Jul 2023 18:54:15 +0100 Subject: [PATCH] Updates test case should list all the tax rates (2) --- ...ary_fee_with_tax_report_by_producer_spec.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 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 a98ec3fec6..0102def430 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 @@ -946,31 +946,33 @@ describe "Enterprise Summary Fee with Tax Report By Producer" do let(:summary_row){ [ - "TOTAL", "230.13", "9.87", "240.0" + "TOTAL", "172.63", "7.37", "180.0" ].join(" ") } it 'should list all the tax rates' do + pending "removal from distributor and coordinator fees from results" + login_as distributor_owner visit admin_reports_path click_on "Enterprise Fees With Tax Report By Producer" - expect(page).to have_button("Go") + expect(page).to have_button("Go") click_on "Go" expect(page.find("table.report__table thead tr")).to have_content(table_header) table = page.find("table.report__table tbody") - expect(table).to have_content(admin_state_tax1) - expect(table).to have_content(admin_country_tax1) + expect(table).not_to have_content(admin_state_tax1) + expect(table).not_to have_content(admin_country_tax1) expect(table).to have_content(transport_state_tax1) expect(table).to have_content(transport_country_tax1) - expect(table).to have_content(packing_state_tax1) - expect(table).to have_content(packing_country_tax1) + expect(table).not_to have_content(packing_state_tax1) + expect(table).not_to have_content(packing_country_tax1) - expect(table).to have_content(admin_state_tax2) + expect(table).not_to have_content(admin_state_tax2) expect(table).to have_content(transport_state_tax2) - expect(table).to have_content(packing_state_tax2) + expect(table).not_to have_content(packing_state_tax2) expect(table).to have_content(supplier1_cost_of_produce_line_items) expect(table).to have_content(summary_row)