More advance signup flow

This commit is contained in:
2015-02-24 17:56:06 +01:00
parent 16418dde30
commit cb723ea432
19 changed files with 123 additions and 48 deletions
+1 -7
View File
@@ -18,13 +18,7 @@ Feature: Manage settings
When I visit the supplier settings path
And I provide a new supplier email address
And the supplier submits the supplier settings form
#Then the supplier should see a settings saved message
Then the supplier email should not have been changed
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 should be redirected to the supplier settings path
And the supplier email is the new email and the unconfirmed email is empty
Then the supplier email is the new email
@javascript @broken
Scenario: Setting the timezone
+19 -5
View File
@@ -6,8 +6,22 @@ Feature: A supplier can sign up
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 the supplier should be redirected to the supplier settings path
Then a new supplier with the new signup data should be created
And the supplier should be redirected to the supplier '/pages/introduction' path
@javascript
Scenario: Existing non signed-in employee creates new supplier
Given there is a confirmed employee
When I visit the supplier signup path
And fill in the supplier signup form with existing employee credentials
And click on the supplier signup submit button
And I wait 1 second
Then a new supplier with the existing employee should be created
And the supplier should be redirected to the supplier '/pages/introduction' path
#Scenarios
#- non existing non signed in employee
#- existing non signed in employee
#- existing signed in emloyee
#- Supplier name exist for existing employee