mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove the button that enables user to split an order between stock locations
There's only one stock location in OFN so this feature is not useful at this point
This commit is contained in:
@@ -24,3 +24,7 @@ angular.module("admin.orders").controller "orderCtrl", ($scope, shops, orderCycl
|
||||
|
||||
for shop in $scope.shops
|
||||
shop.disabled = !$scope.distributorHasOrderCycles(shop)
|
||||
|
||||
# Hides the split button introduced by spree in the order form
|
||||
# We only have one stock location in OFN so it's meaningless to split the order between stock locations
|
||||
$('.split-item').hide()
|
||||
|
||||
@@ -285,6 +285,11 @@ feature %q{
|
||||
end
|
||||
end
|
||||
|
||||
scenario "cannot split the order in different stock locations" do
|
||||
# There's only 1 stock location in OFN, so the split functionality that comes with spree should be hidden
|
||||
expect(page).to_not have_selector '.split-item'
|
||||
end
|
||||
|
||||
scenario "can edit shipping method" do
|
||||
expect(page).to_not have_content different_shipping_method.name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user