Improve supplier settings logick
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
Feature: Manage settings
|
||||
|
||||
@javascript
|
||||
Scenario: Changing the name
|
||||
Given there is a confirmed and open supplier
|
||||
And I am signed in as supplier
|
||||
And I visit the supplier settings path
|
||||
When the supplier changes the name to "Test8" in the settings page
|
||||
And the supplier submits the supplier settings form
|
||||
Then the supplier should be redirected to the root path
|
||||
And the supplier name in the page should be "Test8"
|
||||
|
||||
@javascript
|
||||
Scenario: Changing the supplier email
|
||||
Given there is a confirmed and open supplier
|
||||
@@ -12,7 +22,7 @@ Feature: Manage settings
|
||||
And the supplier unconfirmed email should have been set to the new supplier email
|
||||
And an email should have been sent to the original supplier email with email confirmation instructions
|
||||
When the supplier clicks on the new email confirmation link
|
||||
Then the supplier gets redirected to the supplier settings path
|
||||
Then the supplier should be redirected to the supplier settings path
|
||||
And the supplier email is the new email and the unconfirmed email is empty
|
||||
|
||||
@javascript @broken
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
Feature: A supplier can sign up
|
||||
|
||||
@javascript
|
||||
Scenario: It works
|
||||
When I visit the supplier signup path
|
||||
And fill in the supplier signup form with new credentials
|
||||
And click on the supplier signup submit button
|
||||
And I wait 1 second
|
||||
Then a new unconfirmed supplier with the new signup credentials should be created
|
||||
And a supplier signup confirmation mail should be sent containing a link to the token
|
||||
When I visit the supplier signup confirmation path with the correct token
|
||||
Then the new signup supplier should be confirmed
|
||||
And I should be redirected to the supplier settings page
|
||||
|
||||
And the supplier should be redirected to the supplier settings path
|
||||
|
||||
Reference in New Issue
Block a user