Specs are green
This commit is contained in:
@@ -6,6 +6,7 @@ step "there is an open supplier with a menu" do
|
||||
|
||||
@apple_pie= create :product, name: 'Apple pie', supplier: @supplier, price: 4.28, product_category_id: @category_lunch.id
|
||||
@heineken_beer = create :product, name: 'Heineken beer', supplier: @supplier, price: 2.34, product_category_id: @category_beer.id
|
||||
@product = @heineken_beer # set @product for user order selection
|
||||
end
|
||||
|
||||
step "the supplier is in :time_zone" do |time_zone|
|
||||
|
||||
@@ -3,7 +3,7 @@ step "the user is on the active list page" do
|
||||
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'
|
||||
page.evaluate_script(%|$('.order-row-#{@order.id}').text()|).should start_with "2 x Heineken beer€ 4.68"
|
||||
end
|
||||
|
||||
step "the user should not see the order in the active list view" do
|
||||
|
||||
@@ -17,7 +17,6 @@ step "the user clicks on the about link in the side menu" do
|
||||
end
|
||||
|
||||
step "the user clicks on the active list link in the side menu" do
|
||||
binding.pry
|
||||
page.execute_script %|$('.side-menu-active-list').click()|
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user