Clarifies pending examples

This commit is contained in:
filipefurtad0
2022-08-05 17:43:02 +01:00
parent 5aa6b14756
commit 2aded5b459

View File

@@ -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"