Add option 'allow guest orders' to enterprise

An enterprise manager can choose to allow guest orders (default) or
require a valid login for checkout.
This commit is contained in:
Maikel Linke
2016-09-23 08:36:58 +10:00
parent 92694c729f
commit c59cd21698
5 changed files with 28 additions and 1 deletions

View File

@@ -90,6 +90,10 @@ feature %q{
expect(page).to have_checked_field "enterprise_require_login_false"
choose "Require customers to login"
# Require login for checkout
expect(page).to have_checked_field "enterprise_allow_guest_orders_true"
choose "Require login to order"
within (".side_menu") { click_link "Users" }
select2_search user.email, from: 'Owner'
@@ -191,6 +195,7 @@ feature %q{
page.should have_content 'This is my shopfront message.'
page.should have_checked_field "enterprise_preferred_shopfront_order_cycle_order_orders_open_at"
expect(page).to have_checked_field "enterprise_require_login_true"
expect(page).to have_checked_field "enterprise_allow_guest_orders_false"
end
describe "producer properties" do