dox Executable Documentation

List orders

Four orders

Given now is '2013-04-02 19:00'
Given the order 'Test Order 1' with deadline '2013-04-04 18:00'
Given the order 'Test Order 2' with deadline '2013-04-03 18:00'
Given the order 'Test Order 3' with deadline '2013-04-02 18:00'
Given the order 'Test Order 4' with deadline '2013-04-01 18:00'
When I open the page
Then there should be 4 orders listed
Then the name of order 1 should be 'Test Order 1'
Then the deadline of order 1 should be '04.04.2013 18:00'
Then the select link of order 1 should be 'select.html?order=1'
Then the edit link of order 1 should be 'edit.html?order=1'
Then the item link of order 1 should be 'select.html?order=1'
Then order 1 should be open
Then the name of order 2 should be 'Test Order 2'
Then the deadline of order 2 should be '03.04.2013 18:00'
Then order 2 should be open
Then the name of order 3 should be 'Test Order 3'
Then the deadline of order 3 should be '02.04.2013 18:00'
Then order 3 should not be open

Show selections link to admin

Given now is '2013-04-02 19:00'
Given I am logged in as admin
Given the order 'Test Order 1' with deadline '2013-04-03 18:00'
When I open the page
Then the item link of order 1 should be 'selections.html?order=1'