From 2aded5b459eeb763526f72a56a2216f4107fa090 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Fri, 5 Aug 2022 17:43:02 +0100 Subject: [PATCH] Clarifies pending examples --- spec/features/admin/invoice_print_spec.rb | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/spec/features/admin/invoice_print_spec.rb b/spec/features/admin/invoice_print_spec.rb index 03fc5ceb31..c483564d4a 100644 --- a/spec/features/admin/invoice_print_spec.rb +++ b/spec/features/admin/invoice_print_spec.rb @@ -197,11 +197,17 @@ describe ' end it "displays $0.0 when a line item has no tax" do - pending + pending "i) for legend see picture on PR #9495" # first line item, no tax expect(page).to have_content "#{Spree::Product.first.name} (1g) 1 $0.0 $12.54" end + it "displays GST for enterprise fees" do + pending "ii) for legend see picture on PR #9495" + # enterprise fee of $20.00 + expect(page).to have_content "Admin & Handling 1 $20.00 $120.00" + end + it "displays the taxes correctly" do # header expect(page).to have_content "Item Qty GST Price" @@ -314,17 +320,23 @@ describe ' convert_pdf_to_page end it "displays $0.0 when a line item has no tax" do - pending - # first line item, no tax + 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} (1g) 1 $0.0 $12.54" end it "displays the added tax on the GST colum" do - pending "closing #7983" - # second line item, added tax + 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} (1g) 3 $300.09 $1,500.45" end + it "displays GST for enterprise fees" do + pending "v) for legend see picture on PR #9495" + # enterprise fee of $24.00 + expect(page).to have_content "Admin & Handling 1 $20.00 $120.00" + end + it "displays the taxes correctly" do # header expect(page).to have_content "Item Qty GST Price"