openfoodnetwork
openfoodnetwork copied to clipboard
[Flaky] Alternative Invoice - total tax line
What we should change and why (this is tech debt)
This fails consistently on my system, so far never on master, and often on https://github.com/openfoodfoundation/openfoodnetwork/pull/9543.
Failure/Error: expect(page).to have_content "Total tax (20.0%): $324.09"
expected to find text "Total tax (20.0%): $324.09" in "TAX INVOICE Enterprise 37 10 Lovely Street, Northwest Herndon, 20170, Victoria Billing address: Invoice issued on: 2022-08-11 John Doe Date of transaction: 2022-08-11 10 Lovely Street, Northwest Invoice number: R671343520 Herndon, 20170, Victoria 123-456-7890 [email protected] Item Qty Unit price (Incl. tax) Total price (Incl. taTax rate Product #41 - 8462 1 $12.54 $12.54 0.0% (1g) Enterprise 38 Product #42 - 2674 3 $500.15 $1,500.45 20.0% (1g) Enterprise 38 Admin & Handling $120.00 Shipping $100.55 20.0% Total (Incl. tax): $2,077.74 Total tax (20.0%): $20.11 Total (Excl. tax): $1,733.54 Payment summary Balance due : $2,077.74 Payment Date/time Payment Method State Amount Aug 11, 2022 Check checkout $1,757.54 10:34 Payment Description at Checkout"
# ./spec/features/admin/invoice_print_spec.rb:375:in `block (5 levels) in <top (required)>'
Context
https://github.com/openfoodfoundation/openfoodnetwork/runs/7785026589?check_suite_focus=true