-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin: can create whitelisted emails
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="fr-container"> | ||
<div class="fr-grid-row"> | ||
<div class="fr-col-6"> | ||
<%= form_with(model: @verified_email, url: admin_whitelisted_verified_emails_path) do |f| %> | ||
<%= f.dsfr_email_field :email, required: true %> | ||
<%= f.submit t('.cta'), class: %w[fr-btn fr-btn--sm] %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> |
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 |
---|---|---|
|
@@ -14,3 +14,12 @@ Fonctionnalité: Espace admin: emails en liste blanche | |
Et que je me rends sur le module "Emails vérifiés" de l'espace administrateur | ||
Alors la page contient "[email protected]" | ||
Et la page ne contient pas "[email protected]" | ||
|
||
Scénario: Je peux ajouter un email en liste blanche | ||
Quand je me rends sur le module "Emails vérifiés" de l'espace administrateur | ||
Et que je clique sur "Ajouter un email" | ||
Et que je remplis "Email" avec "[email protected]" | ||
Et que je clique sur "Valider" | ||
Alors la page contient "[email protected]" | ||
Et il y a un message de succès contenant "a été ajouté" | ||
|