-
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.
- Suivi - Ajout inscription - 3 exports en CSV - Virements en attente
- Loading branch information
Showing
10 changed files
with
133 additions
and
26 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
2 changes: 1 addition & 1 deletion
2
...ures/Admin/AdminEvenementsGestion.feature → ...es/Admin/Events/GestionEvenements.feature
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,60 @@ | ||
Feature: Administration - Événements - Inscriptions | ||
|
||
@reloadDbWithTestData | ||
Scenario: Accès à la liste puis ajout d'une inscription | ||
Given I am logged in as admin and on the Administration | ||
And I follow "Inscriptions" | ||
Then the ".content h2" element should contain "Inscriptions" | ||
When I follow "Ajouter" | ||
Then I should see "Ajouter une inscription pour le forum" | ||
Then The "civilite" field should only contain the follow values '["M.", "Mme"]' | ||
When I select "2" from "type_inscription" | ||
And I fill in "nom" with "Nom participant" | ||
And I fill in "prenom" with "Prénom participant" | ||
And I fill in "email" with "nomparticipant@gmail.com" | ||
And I select "2" from "type_reglement" | ||
And I press "Soumettre" | ||
Then I should see "L'inscription a été ajoutée" | ||
And I should see "Inscriptions" | ||
And I should see "Prénom participant Nom participant" | ||
|
||
# Bug sur cet export à reprendre une fois celui-ci corrigé | ||
# Scenario: Export CSV: Inscription | ||
# Given I am logged in as admin and on the Administration | ||
# # Export | ||
# And I follow "Inscriptions" | ||
# Then I should see "Exports" | ||
# And I follow "Exporter les inscriptions" | ||
# Then the response status code should be 200 | ||
|
||
Scenario: Export CSV: Badges | ||
Given I am logged in as admin and on the Administration | ||
# Création d'un évènement | ||
And I follow "Gestion événements" | ||
Then the ".content h2" element should contain "Liste des événements" | ||
When I follow "Ajouter" | ||
Then I fill in "titre" with "AFUP export badges" | ||
And I fill in "nb_places" with "666" | ||
And I press "Soumettre" | ||
# Export | ||
And I follow "Inscriptions" | ||
Then I should see "Exports" | ||
And I follow "Exporter les inscriptions pour les badges" | ||
Then the response status code should be 200 | ||
And the response header "Content-disposition" should match '#^attachment; filename="inscriptions_forum_.*.csv"#' | ||
|
||
Scenario: Export CSV: Inscrits aux 4 derniers événements | ||
Given I am logged in as admin and on the Administration | ||
# Création d'un évènement | ||
And I follow "Gestion événements" | ||
Then the ".content h2" element should contain "Liste des événements" | ||
When I follow "Ajouter" | ||
Then I fill in "titre" with "AFUP export derniers" | ||
And I fill in "nb_places" with "4242" | ||
And I press "Soumettre" | ||
# Export | ||
And I follow "Inscriptions" | ||
Then I should see "Exports" | ||
And I follow "Exporter les inscrits aux 4 derniers événements" | ||
Then the response status code should be 200 | ||
And the response header "Content-disposition" should match '#^attachment; filename="inscriptions_([0-9]*)_derniers_events.csv"#' |
2 changes: 1 addition & 1 deletion
2
...tures/Admin/AdminEvenementsSalles.feature → ...ehat/features/Admin/Events/Salles.feature
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,15 @@ | ||
Feature: Administration - Événements - Suivi | ||
|
||
@reloadDbWithTestData | ||
Scenario: On vérifie la page du suivi | ||
Given I am logged in as admin and on the Administration | ||
And I follow "Suivi" | ||
Then the ".content h2" element should contain "Suivi" | ||
And the response should contain "Évolution des inscriptions" | ||
And the response should contain "Jours de vente restants" | ||
And the response should contain "142 jours restants" | ||
And the response should contain "Progression des ventes: Jour 1" | ||
And the response should contain "0 places vendues sur" | ||
And the response should contain "Progression des ventes: Jour 2" | ||
And the response should contain "0 places vendues sur" | ||
And the response should contain "Répartition des billets" |
22 changes: 1 addition & 21 deletions
22
...at/features/Admin/AdminEvenements.feature → ...tures/Admin/Events/TokensSponsors.feature
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,23 @@ | ||
Feature: Administration - Événements - Virements en attente | ||
|
||
@reloadDbWithTestData | ||
Scenario: Accès à la liste des virements | ||
Given I am logged in as admin and on the Administration | ||
# Ajout d'une inscription avec virement | ||
And I follow "Inscriptions" | ||
When I follow "Ajouter" | ||
Then The "civilite" field should only contain the follow values '["M.", "Mme"]' | ||
When I select "2" from "type_inscription" | ||
And I fill in "nom" with "Nom participant" | ||
And I fill in "prenom" with "Prénom participant" | ||
And I fill in "email" with "nomparticipant@gmail.com" | ||
And I select "2" from "type_reglement" | ||
And I press "Soumettre" | ||
# Accès à la liste | ||
And I follow "Virements en attente" | ||
Then the ".content h2" element should contain "Virements en attente de réception" | ||
And I should see "Facture Société Montant Date Places" | ||
And I should see "Prénom participant Nom participant" | ||
# Marque le virement comme reçu | ||
Then I press "Virement reçu" | ||
And I should not see "Prénom participant Nom participant" |