User cancelled order handling

This commit is contained in:
2014-08-14 14:11:14 +02:00
parent 6da2d7a40e
commit 0e605828bd
11 changed files with 76 additions and 5 deletions
@@ -5,3 +5,11 @@ end
step "the user should see the order in the active list view" do
page.evaluate_script(%|$('.order-row-#{@order.id}').text()|).first(14).should == '2 x Beer€ 4.68'
end
step "the user should not see the order in the active list view" do
page.should_not have_selector ".order-row-#{@order.id}"
end
step "the supplier counters in the user active list view should be updated" do
binding.pry
end