Skip to content

Commit

Permalink
Prepare Behat scenarios for User system refacto (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed May 18, 2020
1 parent 7311bd3 commit 04c31c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion features/organization/assets.feature
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Feature:
| admin203@resop.com | /organizations/203/assets | /organizations/203/assets/preAdd | /organizations/203/assets/add |

@javascript
Scenario: As an admin of an organization, I can display an asset modal
Scenario: As an admin of an admin of an organization, I can display an asset modal
Given I am authenticated as "[email protected]"
When I go to "/organizations/201/assets"
And I press "Afficher"
Expand Down
13 changes: 4 additions & 9 deletions features/user/account.feature → features/user/edit.feature
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
Feature:
In order to update my account,
As a user,
I must be able to edit my personal information.
In order to update my account
As a user
I must be able to edit my personal information

Scenario: As anonymous, I cannot update an account
When I go to "/user/edit"
Then I should be on "/login"
And the response status code should be 200

Scenario: As a user, I can see my account
Given I am authenticated as "[email protected]"
When I go to "/user/edit"
Then I should be on "/user/edit"
And the response status code should be 200
And the "user[identificationNumber]" field should contain "990001A"
Then the "user[identificationNumber]" field should contain "990001A"
And the "user[emailAddress]" field should contain "[email protected]"
And the "user[firstName]" field should contain "John"
And the "user[lastName]" field should contain "DOE"
Expand Down Expand Up @@ -118,7 +115,6 @@ Feature:
| user[phoneNumber] | <phoneNumber> |
And I press "Valider"
Then I should be on "/"
And the response status code should be 200
And I should see "Vos informations ont été mises à jour avec succès."
When I follow "Déconnexion"
And I fill in the following:
Expand All @@ -128,7 +124,6 @@ Feature:
| user_login[birthday][year] | 1990 |
And I press "Je me connecte"
Then I should be on "/"
And the response status code should be 200
And I should see "NIVOL : 899999A"
Examples:
| login | phoneNumber |
Expand Down

0 comments on commit 04c31c0

Please sign in to comment.