dox Executable Documentation

Display todays order

Show todays selection

Given I am logged as the user 'Homer'
Given now is '2013-04-04 18:00'
Given an order 'order1' with 1 menus each 1 dishes starting on '2013-04-04'
Given dish 1 of menu 1 of this order is 'Dish 1'
Given 'Homer' selected dish 'Dish 1' for menu 1 of order 'order1'
When I open the page
Then it should display todays order 'Dish 1'

No todays selection if not user

Given I am logged in as admin
Given now is '2013-04-04 18:00'
Given an order 'order1' with 1 menus each 1 dishes starting on '2013-04-04'
Given dish 1 of menu 1 of this order is 'Dish 1'
When I open the page
Then there should be no todays order

No selection for today

Given I am logged as the user 'Homer'
Given now is '2013-04-04 18:00'
Given an order 'order1' with 1 menus each 1 dishes starting on '2013-04-04'
Given dish 1 of menu 1 of this order is 'Dish 1'
When I open the page
Then there should be no todays order

Todays selection when selected no dish

Given I am logged as the user 'Homer'
Given now is '2013-04-04 18:00'
Given an order 'order1' with 1 menus each 1 dishes starting on '2013-04-04'
Given 'Homer' selected no dish for menu 1 of order 'order1'
When I open the page
Then it should display todays order 'Nothing for you today.'

No menu for today

Given I am logged as the user 'Homer'
Given now is '2013-04-04 18:00'
Given an order 'order1' with 1 menus each 1 dishes starting on '2013-04-05'
When I open the page
Then there should be no todays order