Greenification of the specs
This commit is contained in:
@@ -14,8 +14,9 @@ step "the user indicates in the popup that he wants to change the table" do
|
||||
end
|
||||
|
||||
step "the user should see the supplier menu having the other table as base" do
|
||||
#route_should_be 'user#list_products'
|
||||
page.should have_content 'Apple pie'
|
||||
ember_route_should_be '/active-list'
|
||||
product_order = @list.orders.first.product_orders.first
|
||||
page.should have_content "#{product_order.quantity} x #{product_order.product_name}"
|
||||
all('.table-number').map(&:text).uniq.should == ["# #{@other_table.number.to_s}"]
|
||||
end
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@ step "the user clicks on the submit feedback button" do
|
||||
end
|
||||
|
||||
step "the user should see the feedback submitted message" do
|
||||
page.should have_content 'Thank you for your feedback'
|
||||
#page.should have_content 'Thank you for your feedback'
|
||||
page.should have_content 'Dank je voor het meedenken'
|
||||
end
|
||||
|
||||
step "a user feedback should be created containing the feedback" do
|
||||
|
||||
@@ -140,12 +140,12 @@ step "the user has an active list with a/an :order_status order" do |order_statu
|
||||
end
|
||||
end
|
||||
|
||||
step "the user page contains the product category lunch" do
|
||||
js_text("#product-category-#{@category_lunch.id} .product_category-title").should include @category_lunch.name
|
||||
step "the user page contains the product category :product_category_name" do |product_category_name|
|
||||
product_category = ProductCategory.find_by_name(product_category_name)
|
||||
js_text("#product-category-#{product_category.id} .product_category-title").should include product_category.name
|
||||
end
|
||||
step "the user page contains the product category beer" do
|
||||
js_text("#product-category-#{@category_beer.id} .product_category-title").should include @category_beer.name
|
||||
end
|
||||
step "the user page does not contain the product category lunch" do
|
||||
page.should_not have_selector "#product-category-#{@category_lunch.id} .product_category-title"
|
||||
|
||||
step "the user page does not contain the product category :product_category_name" do |product_category_name|
|
||||
product_category = ProductCategory.find_by_name(product_category_name)
|
||||
page.should_not have_selector "#product-category-#{product_category.id} .product_category-title"
|
||||
end
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
step "the users clicks on the product category :product_category_name title" do |product_category_name|
|
||||
product_category = ProductCategory.find_by_name product_category_name
|
||||
js_click "#product-category-#{product_category.id} .product_category-title"
|
||||
end
|
||||
Reference in New Issue
Block a user