mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
Continue shopping with the products list
This commit is contained in:
@@ -16,4 +16,8 @@ module SharedHelper
|
||||
def admin_user?
|
||||
spree_current_user.andand.has_spree_role? 'admin'
|
||||
end
|
||||
|
||||
def current_shop_products_path
|
||||
"#{main_app.enterprise_shop_path(current_distributor)}#/shop"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.row.links{'data-hook' => "cart_buttons"}
|
||||
.columns.large-8{"data-hook" => ""}
|
||||
%a.button.large.secondary{href: main_app.shop_path}
|
||||
%a.button.large.secondary{href: current_shop_products_path}
|
||||
%i.ofn-i_008-caret-left
|
||||
= t :orders_edit_continue
|
||||
.columns.large-4.text-right
|
||||
|
||||
@@ -24,8 +24,7 @@ feature "full-page cart", js: true do
|
||||
it "shows a button leading back to the shop" do
|
||||
# Set up a shopfront message to test that we are not going to the
|
||||
# home tab.
|
||||
# PENDING: this passes only without home tab!
|
||||
#distributor.preferred_shopfront_message = "Test driven farming"
|
||||
distributor.preferred_shopfront_message = "Test driven farming"
|
||||
|
||||
add_product_to_cart order, product_with_fee, quantity: 2
|
||||
visit main_app.cart_path
|
||||
@@ -36,7 +35,7 @@ feature "full-page cart", js: true do
|
||||
|
||||
expect(page).to have_no_link "Continue shopping"
|
||||
expect(page).to have_button "Edit your cart"
|
||||
#expect(page).to have_no_content distributor.preferred_shopfront_message
|
||||
expect(page).to have_no_content distributor.preferred_shopfront_message
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user