Files
mozo-backend/spec/acceptance_steps/users/active_list_steps.rb
T

16 lines
480 B
Ruby

step "the user is on the active list page" do
visit "/user#/active_list"
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