Skip to content

Commit

Permalink
Strip end of long invoice table header names due to names not properl…
Browse files Browse the repository at this point in the history
…y parsed when converting pdf to text [OFN-12214]
  • Loading branch information
wandji20 committed Aug 13, 2024
1 parent 58872a7 commit f325857
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/system/admin/invoice_print_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,10 @@
# header
expect(page).to have_content "Item Qty"
expect(page).to have_content "Weight / VOL."
expect(page).to have_content "Price Per unit (Excl. tax)"
expect(page).to have_content "Total price (Excl. tax)"
expect(page).to have_content "Price Per unit (Excl."
expect(page).to have_content "Total price (Excl."
expect(page).to have_content "Tax rate"
expect(page).to have_content "Total price (Incl. tax)"
expect(page).to have_content "Total price (Incl."
# first line item, no tax
expect(page).to have_content Spree::Product.first.name.to_s
expect(page).to have_content "($12,540.00 / kg)" # unit price
Expand Down Expand Up @@ -639,10 +639,10 @@
# header
expect(page).to have_content "Item Qty"
expect(page).to have_content "Weight / VOL."
expect(page).to have_content "Price Per unit (Excl. tax)"
expect(page).to have_content "Total price (Excl. tax)"
expect(page).to have_content "Price Per unit (Excl."
expect(page).to have_content "Total price (Excl."
expect(page).to have_content "Tax rate"
expect(page).to have_content "Total price (Incl. tax)"
expect(page).to have_content "Total price (Incl."
# first line item, no tax
expect(page).to have_content Spree::Product.first.name.to_s
expect(page).to have_content "($12,540.00 / kg)" # unit price
Expand Down

0 comments on commit f325857

Please sign in to comment.