Files
mozo-backend/spec/acceptance/suppliers/section_view.feature
T

49 lines
2.1 KiB
Gherkin

Feature: Supplier section view
@javascript
Scenario: the section view displays tables and keeps their status information
Given there is an active list and order
And I am signed in as supplier
When I visit the supplier section path
Then the section table should be positioned in the section
And the section table should be marked as having an active order
And the section table should be marked as occupied
And the section table should not be marked as in need of help
When the list is marked as in need of help
# waiting here only needed in old style implementation
And I wait 1 second
Then the section table should be marked as in need of help
When I click on section table as a supplier
Then A popup having table options should appear in supplier section area
When I click on the mark list as helped in the section table popup as supplier
And I wait 1 second
Then the section table should not be marked as in need of help
And the section table popup should no longer have the mark list as helped button
When the list is marked as in need of payment
Then the section table should be marked as in need of payment
When I click on the close list button in the section table table popup
And I wait 1 second
Then the section table should not have any active list markings anymore
And the list should be marked as closed
@javascript
Scenario: Selecting a specific section limits the result to the lists and orders of those sections
Given there is an active list and order
And I am signed in as supplier
And a new order on a table in another section is created
Then I should see the list and the new list
And I should see the order and the new order
When I select the section in the supplier dashboard
Then I should see the list and order but not the new list and new order
When I select the new section in the supplier dashboard
Then I should see the new list and new order but not the list and order
When I reset the section selector in the supplier dashboard
Then I should see the list and the new list
And I should see the order and the new order