From eae0c643339cbd4a6605a3ce524970f9df0ffce1 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Mon, 30 Oct 2023 22:13:01 +0100 Subject: [PATCH] test tax totals on the printed version of the invoice (v3) --- spec/system/admin/invoice_print_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/system/admin/invoice_print_spec.rb b/spec/system/admin/invoice_print_spec.rb index 504996e4bb6c..4a3baf64dcc8 100644 --- a/spec/system/admin/invoice_print_spec.rb +++ b/spec/system/admin/invoice_print_spec.rb @@ -556,6 +556,7 @@ # 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" + expect(page).to have_content "Total tax: $274.87" # Order Totals expect(page).to have_content "Total (Incl. tax): $1,733.54" expect(page).to have_content "Total (Excl. tax): $1,458.67" @@ -658,6 +659,7 @@ # 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" + expect(page).to have_content "Total tax: $328.15" # Order Totals expect(page).to have_content "Total (Incl. tax): $2,061.69" expect(page).to have_content "Total (Excl. tax): $1,733.54"