-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Espace membres > Gestion des utilisateurs personnes morales
- Loading branch information
Showing
8 changed files
with
69 additions
and
13 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
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
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
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
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ Feature: Administration - Trésorerie - Recherche comptable | |
Then the ".content h2" element should contain "Recherche comptable" | ||
When I fill in "q" with "raoul" | ||
And I press "Rechercher" | ||
And I should see "Jul 13, 2018 > Jul 8, 2019 150.00 Dupont Raoul <[email protected]>" | ||
And I should see "Jul 13, 2018 >" | ||
And I should see "150.00 Dupont Raoul <[email protected]>" |
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Feature: Espace membre > Personne morale > Personnes rattachés | ||
|
||
@reloadDbWithTestData | ||
@clearEmails | ||
Scenario: Gestions des droits | ||
Given I am logged-in with the user "edmonddupont" and the password "edmonddupont" | ||
And I follow "Espace membre" | ||
Then I should see "Espace membre" | ||
And I follow "Modifier les personnes rattachées" | ||
# Liste des membres | ||
Then I should see "Les membres rattachés à mon entreprise" | ||
Then I should see "Jan Raoul Non [email protected]" | ||
# Donner les droits | ||
And I press "Donner les droits de gestion" | ||
Then I should see "Le membre a été promu en tant que manager." | ||
# Retirer les droits | ||
And I press "Enlever les droits de gestion" | ||
Then I should see "Le membre n'a plus accès la gestion de l'entreprise." | ||
|
||
@reloadDbWithTestData | ||
@clearEmails | ||
Scenario: Invitation des membres | ||
Given I am logged-in with the user "edmonddupont" and the password "edmonddupont" | ||
And I follow "Espace membre" | ||
Then I should see "Espace membre" | ||
And I follow "Modifier les personnes rattachées" | ||
# Envoyer une invitation | ||
Then I fill in "company_member_invitation[email]" with "[email protected]" | ||
And I press "Envoyer l'invitation" | ||
Then I should see "L'invitation a été envoyée à l'adresse [email protected]." | ||
And I should only receive the following emails: | ||
| to | subject | | ||
| <email1@email.com> | MyCorp vous invite à profiter de son compte "Membre AFUP" | | ||
And I should see "[email protected] Non" | ||
# Envoyer la dernière | ||
Then I fill in "company_member_invitation[email]" with "[email protected]" | ||
And I press "Envoyer l'invitation" | ||
# Renvoyer la dernière invitation | ||
And I press "Envoyer à nouveau" | ||
And I should see "L'invitation a été renvoyée." | ||
And I should only receive the following emails: | ||
| to | subject | | ||
| <email1@email.com> | MyCorp vous invite à profiter de son compte "Membre AFUP" | | ||
| <email2@email.com> | MyCorp vous invite à profiter de son compte "Membre AFUP" | | ||
| <email1@email.com> | MyCorp vous invite à profiter de son compte "Membre AFUP" | | ||
# Invitation max bloqué | ||
Then I should see "Vous avez actuellement 1 membre(s) rattaché(s) et 2 invitation(s) en attente." | ||
# Annulation d'une invitation | ||
And I press "Annuler" | ||
Then I should see "L'invitation a été annulée." | ||
Then I should not see "Vous avez actuellement 1 membre(s) rattaché(s) et 2 invitation(s) en attente." |
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