mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user