-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare Behat scenarios for User system refacto (#339)
- Loading branch information
1 parent
7311bd3
commit 04c31c0
Showing
2 changed files
with
5 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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: | ||
|
@@ -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 | | ||
|