mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
Merge two describe sections with same before method and call it what it is: guest checkout
This commit is contained in:
@@ -156,7 +156,7 @@ feature "As a consumer I want to check out my cart", js: true do
|
||||
end
|
||||
end
|
||||
|
||||
context "on the checkout page" do
|
||||
context "guest checkout" do
|
||||
before do
|
||||
visit checkout_path
|
||||
checkout_as_guest
|
||||
@@ -259,13 +259,6 @@ feature "As a consumer I want to check out my cart", js: true do
|
||||
expect(page).to have_content "Local"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "on the checkout page with payments open" do
|
||||
before do
|
||||
visit checkout_path
|
||||
checkout_as_guest
|
||||
end
|
||||
|
||||
it "shows all available payment methods" do
|
||||
expect(page).to have_content check_without_fee.name
|
||||
|
||||
Reference in New Issue
Block a user