From f4a5130cb58e3996dfd30e29420f8b577ff36a6b Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Fri, 20 Jan 2023 18:41:10 +0100 Subject: [PATCH] remove pending from tests --- spec/system/admin/invoice_print_spec.rb | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/spec/system/admin/invoice_print_spec.rb b/spec/system/admin/invoice_print_spec.rb index ead65379c4..73fe04b375 100644 --- a/spec/system/admin/invoice_print_spec.rb +++ b/spec/system/admin/invoice_print_spec.rb @@ -205,11 +205,8 @@ describe ' convert_pdf_to_page end - it "displays $0.0 when a line item has no tax" do - pending "i) for legend see picture on PR #9495" - # first line item, no tax - expect(page).to have_content "#{Spree::Product.first.name} 1 $0.0 $12.54" - expect(page).to have_content "(1g)" # display as + it "displays $0.00 when a line item has no tax" do + expect(page).to have_content "#{Spree::Product.first.name} (1g) 1 $0.00 $12.54" end it "displays the taxes correctly" do @@ -338,16 +335,10 @@ describe ' convert_pdf_to_page end it "displays $0.0 when a line item has no tax" do - pending "iii) for legend see picture on PR #9495" - # first line item, no tax - display $0.0 - expect(page).to have_content Spree::Product.first.name.to_s - expect(page).to have_content "(1g)" # display as - expect(page).to have_content "1 $0.0 $12.54" + expect(page).to have_content "#{Spree::Product.first.name} (1g) 1 $0.00 $12.54" end it "displays the added tax on the GST colum" do - pending "closing #7983, iv) for legend see picture on PR #9495" - # second line item, added tax of $300.09 expect(page).to have_content Spree::Product.second.name.to_s expect(page).to have_content "(1g)" # display as expect(page).to have_content "3 $300.09 $1,500.45"