mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Patching some deadlocks
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Shop::ShopController < BaseController
|
||||
layout "darkswarm"
|
||||
before_filter :require_distributor_chosen
|
||||
before_filter :set_order_cycles
|
||||
before_filter :set_order_cycles, only: :show
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
@@ -60,8 +60,9 @@ feature "As a consumer I want to shop with a distributor", js: true do
|
||||
end
|
||||
|
||||
it "shows the table after an order cycle is selected" do
|
||||
order.update_attribute(:order_cycle, oc1)
|
||||
visit shop_path
|
||||
select "frogs", :from => "order_cycle_id"
|
||||
page.should have_content distributor.name # This forces a wait, allowing the Ajax call to finish
|
||||
page.should have_selector("input.button.right", visible: true)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user