refactor and move to selenium
This commit is contained in:
@@ -54,6 +54,7 @@ Feature: Supplier main board
|
||||
Given there is an active list and order
|
||||
And there is another section with table
|
||||
And I am signed in as supplier
|
||||
When I visit the supplier root path
|
||||
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
|
||||
@@ -69,7 +70,8 @@ Feature: Supplier main board
|
||||
Scenario: Selecting a specific section and jumping towards section view
|
||||
Given there is an active list and order
|
||||
And I am signed in as supplier
|
||||
When I select the section in the supplier dashboard
|
||||
When I visit the supplier root path
|
||||
And I select the section in the supplier dashboard
|
||||
And I click on the section main board section jumper
|
||||
Then I should be redirected to the supplier section view
|
||||
|
||||
@@ -78,6 +80,7 @@ Feature: Supplier main board
|
||||
Given there is an active list and order
|
||||
And there is another section with table
|
||||
And I am signed in as supplier
|
||||
When I visit the supplier root path
|
||||
# wait until page is fully loaded, could be a pure ruby command inside a within :selector statement since the browser will wait for the selector to be present and then the lists are loaded
|
||||
And I wait 4 seconds
|
||||
When the active list changes to another table in another section
|
||||
@@ -89,7 +92,8 @@ Feature: Supplier main board
|
||||
Scenario: Remove an order
|
||||
Given there is an active list and order
|
||||
And I am signed in as supplier
|
||||
When the supplier marks the order as wrong in the main board view
|
||||
When I visit the supplier root path
|
||||
And the supplier marks the order as wrong in the main board view
|
||||
Then the supplier main board order should not be visible anymore
|
||||
And the supplier main board list total should be updated
|
||||
And the supplier placed orders counter should be reduced
|
||||
@@ -98,7 +102,8 @@ Feature: Supplier main board
|
||||
Scenario: Closing list with active orders updates supplier counters
|
||||
Given there is an active list and order
|
||||
And I am signed in as supplier
|
||||
When I click on the close list button in the supplier dashboard
|
||||
When I visit the supplier root path
|
||||
And I click on the close list button in the supplier dashboard
|
||||
And confirm the supplier close list modal
|
||||
Then the supplier placed orders counter should be reduced
|
||||
|
||||
@@ -107,7 +112,8 @@ Feature: Supplier main board
|
||||
Given there is an active list and order
|
||||
And there is another section with table
|
||||
And I am signed in as supplier
|
||||
When a new order on a table in another section is created
|
||||
When I visit the supplier root path
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user