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:
luisramos0
2019-02-25 22:31:40 +00:00
parent ebf825e349
commit 15456577a3
2 changed files with 9 additions and 0 deletions

View File

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

View File

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