try workaround for failing test

(closes foodcoops#303)
This commit is contained in:
wvengen 2014-08-25 16:32:32 +02:00
parent 21838e9c84
commit 72709be60a

View file

@ -112,6 +112,7 @@ describe 'settling an order', :type => :feature do
fill_in :order_article_units_to_order, :with => 0 fill_in :order_article_units_to_order, :with => 0
find('input[type="submit"]').click find('input[type="submit"]').click
end end
sleep 0.5 # workaround "javascript error" "e is null"
expect(page).to have_selector("#order_article_#{oa.id}") expect(page).to have_selector("#order_article_#{oa.id}")
# make sure it still works after reloading # make sure it still works after reloading
visit new_finance_order_path(order_id: order.id) visit new_finance_order_path(order_id: order.id)