From e54acf3ca0e0358507286d2b9b0bd18498c2b7b7 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Thu, 1 Sep 2022 12:25:01 +0100 Subject: [PATCH] Changes tax parcels into the correct order This should fail now, adding pending example on next commit Wraps failing assertions around pending block Addresses rubocop Style/LineEndConcatenation convention Removes pending blocks --- spec/system/admin/invoice_print_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/system/admin/invoice_print_spec.rb b/spec/system/admin/invoice_print_spec.rb index ecb671fc0e..8fa988e045 100644 --- a/spec/system/admin/invoice_print_spec.rb +++ b/spec/system/admin/invoice_print_spec.rb @@ -254,11 +254,11 @@ describe ' expect(page).to have_content "Admin & Handling $120.00" # Shipping expect(page).to have_content "Shipping $100.55 10.0%" + # Tax totals + expect(page).to have_content "Total tax (10.0%): $9.14 " \ + "Total tax (15.0%): $15.65 Total tax (20.0%): $250.08" # Order Totals expect(page).to have_content "Total (Incl. tax): $1,733.54" - expect(page).to have_content "Total tax (15.0%): $15.65" - expect(page).to have_content "Total tax (10.0%): $9.14" - expect(page).to have_content "Total tax (20.0%): $250.08" expect(page).to have_content "Total (Excl. tax): $1,458.67" end end @@ -385,11 +385,11 @@ describe ' expect(page).to have_content "Admin & Handling $120.00" # Shipping expect(page).to have_content "Shipping $100.55 10.0%" + # Tax totals + expect(page).to have_content "Total tax (10.0%): $10.06 " \ + "Total tax (15.0%): $18.00 Total tax (20.0%): $300.09" # Order Totals expect(page).to have_content "Total (Incl. tax): $2,061.69" - expect(page).to have_content "Total tax (15.0%): $18" - expect(page).to have_content "Total tax (10.0%): $10.06" - expect(page).to have_content "Total tax (20.0%): $300.09" expect(page).to have_content "Total (Excl. tax): $1,733.54" end end