Reduce run time of specs by combining them

It's better style to have those specs independent but we also have a
need for fast tests.
This commit is contained in:
Maikel Linke
2021-03-10 15:47:35 +11:00
parent 561da1f834
commit 2149ce7c94

View File

@@ -119,15 +119,16 @@ feature "As a consumer I want to check out my cart", js: true do
end
end
it "doesn't tell about previous orders" do
it "shows only applicable content" do
# Unifying several specs here to speed up test run.
# it doesn't tell about previous orders
expect(page).to have_no_content("You have an order for this order cycle already.")
end
it "doesn't show link to terms and conditions" do
# doesn't show link to terms and conditions
expect(page).to have_no_link("Terms and Conditions")
end
it "doesn't show link to platform terms of service" do
# doesn't show link to platform terms of service
expect(page).to have_no_link("Terms of Service")
end
end