From 86e6697723c8bb8c8cf3e27644231419aff29df1 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Mon, 17 Jul 2023 17:14:01 +0100 Subject: [PATCH] Updates test case should filter by producer --- ...ummary_fee_with_tax_report_by_producer_spec.rb | 15 +++++++-------- 1 file changed, 7 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 cb6f6a074c..384efe444c 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 @@ -531,10 +531,13 @@ describe "Enterprise Summary Fee with Tax Report By Producer" do end it "should filter by producer" do + pending "removal from distributor and coordinator fees from results" + page.find("#s2id_supplier_id_in").click find('li', text: supplier2.name).click expect(page).to have_button("Go") + click_on "Go" expect(page.find("table.report__table thead tr")).to have_content(table_header) @@ -542,19 +545,15 @@ describe "Enterprise Summary Fee with Tax Report By Producer" do expect(table).to have_content(supplier_state_tax2) expect(table).to have_content(supplier_country_tax2) - expect(table).to have_content(distributor_state_tax2) - expect(table).to have_content(distributor_country_tax2) - expect(table).to have_content(coordinator_state_tax2) - expect(table).to have_content(coordinator_country_tax2) + expect(table).not_to have_content(distributor_state_tax2) + expect(table).not_to have_content(distributor_country_tax2) + expect(table).not_to have_content(coordinator_state_tax2) + expect(table).not_to have_content(coordinator_country_tax2) expect(table).to have_content(cost_of_produce2) expect(table).to have_content(summary_row2) expect(table).to_not have_content(supplier_state_tax1) expect(table).to_not have_content(supplier_country_tax1) - expect(table).to_not have_content(distributor_state_tax1) - expect(table).to_not have_content(distributor_country_tax1) - expect(table).to_not have_content(coordinator_state_tax1) - expect(table).to_not have_content(coordinator_country_tax1) expect(table).to_not have_content(cost_of_produce1) expect(table).to_not have_content(summary_row1) end