44 lines
1.9 KiB
Gherkin
44 lines
1.9 KiB
Gherkin
Feature: Active list view
|
|
|
|
@javascript
|
|
Scenario: Loading lists and switching back to the active list works, lists loading may unlink active list orders
|
|
Given There is an open supplier with a menu
|
|
And there is a signed in user with an active order
|
|
And the user is on the active list page
|
|
When the user opens the side menu
|
|
And the user clicks on the lists link in the side menu
|
|
And the user opens the side menu again
|
|
And the user clicks on the active list link in the side menu
|
|
Then the user should see the order in the active list view
|
|
|
|
@javascript
|
|
Scenario: Order disappears and counter adjusts when a placed order is cancelled
|
|
Given There is an open supplier with a menu
|
|
And there is a signed in user with a placed order
|
|
And the user is on the active list page
|
|
And the supplier orders placed counter for the user should be 1
|
|
When the order gets cancelled
|
|
And I wait 1 second
|
|
Then the user should not see the order in the active list view
|
|
And the supplier orders placed counter for the user should be 0
|
|
|
|
@javascript
|
|
Scenario: Order disappears and counter adjusts when an active order is cancelled
|
|
Given There is an open supplier with a menu
|
|
And there is a signed in user with an active order
|
|
And the user is on the active list page
|
|
And the supplier orders in process counter for the user should be 1
|
|
When the order gets cancelled
|
|
And I wait 1 second
|
|
Then the user should not see the order in the active list view
|
|
And the supplier orders in process counter for the user should be 0
|
|
|
|
@javascript
|
|
Scenario: Two users on the same list when one place an order
|
|
Given There is an open supplier with a menu
|
|
And there is a signed in user with an active order
|
|
And the user is on the active list page
|
|
And there is another signed in user on the same list
|
|
When the other user orders a product 5 times
|
|
Then the original user should see the newly placed order
|