35 lines
1.6 KiB
Gherkin
35 lines
1.6 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
|