-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
17 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 |
---|---|---|
|
@@ -37,6 +37,37 @@ Feature: Manage adherent from admin panel | |
When I press "Je rejoins La République En Marche" | ||
Then I should be on "/espace-adherent/accueil" | ||
And I should see "Votre compte adhérent est maintenant actif." | ||
And I should have 1 email | ||
And I should have 1 email "AdherentAccountConfirmationMessage" for "[email protected]" with payload: | ||
""" | ||
{ | ||
"template_name": "adherent-account-confirmation", | ||
"template_content": [], | ||
"message": { | ||
"subject": "Et maintenant ?", | ||
"from_email": "[email protected]", | ||
"merge_vars": [ | ||
{ | ||
"rcpt": "[email protected]", | ||
"vars": [ | ||
{ | ||
"name": "target_firstname", | ||
"content": "Jules" | ||
} | ||
] | ||
} | ||
], | ||
"from_name": "La République En Marche !", | ||
"to": [ | ||
{ | ||
"email": "[email protected]", | ||
"type": "to", | ||
"name": "Jules Fullstack" | ||
} | ||
] | ||
} | ||
} | ||
""" | ||
Then I go to "/deconnexion" | ||
Then I should be on "/" | ||
|
||
|
@@ -51,7 +82,6 @@ Feature: Manage adherent from admin panel | |
|
||
Then I follow "Connexion" | ||
Then I should be on "/connexion" | ||
And I should have 0 email | ||
Then I follow "Mot de passe oublié ? Cliquez ici" | ||
Then I should be on "/mot-de-passe-oublie" | ||
And I fill in the following: | ||
|
@@ -60,31 +90,31 @@ Feature: Manage adherent from admin panel | |
And I press "Envoyer un e-mail" | ||
Then I should be on "/connexion" | ||
And I should see "Si l'adresse que vous avez saisie est valide, un e-mail vous a été envoyé contenant un lien pour réinitialiser votre mot de passe." | ||
And I should have 1 email | ||
And I should have 2 emails | ||
And I should have 1 email "AdherentResetPasswordMessage" for "[email protected]" with payload: | ||
""" | ||
{ | ||
"template_name": "adherent-reset-password, | ||
"template_content": [], | ||
"template_name":"adherent-reset-password", | ||
"template_content":[], | ||
"message": { | ||
"subject": "Réinitialisation de votre mot de passe", | ||
"from_email": "[email protected]", | ||
"from_name": "La République En Marche !", | ||
"subject":"Réinitialisation de votre mot de passe", | ||
"from_email":"[email protected]", | ||
"global_merge_vars": [ | ||
{ | ||
"name": "first_name", | ||
"content": "Jules" | ||
"name":"first_name", | ||
"content":"Jules" | ||
}, | ||
{ | ||
"name": "reset_link", | ||
"content": "http://enmarche.code/changer-mot-de-passe/@string@/@string@" | ||
"name":"reset_link", | ||
"content":"http://test.enmarche.code/changer-mot-de-passe/@uuid@/@string@" | ||
} | ||
], | ||
"to": [ | ||
"from_name":"La République En Marche !", | ||
"to":[ | ||
{ | ||
"email": "[email protected]", | ||
"type": "to", | ||
"name": "Jules Fullstack" | ||
"email":"[email protected]", | ||
"type":"to", | ||
"name":"Jules Fullstack" | ||
} | ||
] | ||
} | ||
|
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 |
---|---|---|
|
@@ -242,7 +242,7 @@ Feature: | |
] | ||
} | ||
], | ||
"from_name": "La R\u00e9publique En Marche !", | ||
"from_name": "La République En Marche !", | ||
"to": [ | ||
{ | ||
"email": "[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