Merge two describe sections with same before method and call it what it is: guest checkout

This commit is contained in:
Luis Ramos
2020-08-18 14:41:07 +01:00
parent 685a5465f1
commit 4ef4a58532

View File

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