Strip end of long invoice table header names due to names not properly parsed when converting pdf to text [OFN-12214]

This commit is contained in:
wandji20
2024-08-13 17:10:46 +01:00
parent 58872a7017
commit f325857e1f

View File

@@ -535,10 +535,10 @@ RSpec.describe '
# 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
@@ -639,10 +639,10 @@ RSpec.describe '
# 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