-
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.
Issue afup#1110 TF personnes morales
- Loading branch information
Showing
5 changed files
with
74 additions
and
12 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
51 changes: 51 additions & 0 deletions
51
tests/behat/features/Admin/AdminPersonnesMoralesCotisations.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Feature: Administration - Partie Personnes morales - cotisations | ||
|
||
@reloadDbWithTestData | ||
Scenario: On test le nom du fichier PDF de cotisation récupéré depuis l'admin d'une personne morale | ||
Given I am logged in as admin and on the Administration | ||
And I follow "Personnes morales" | ||
And I check "also_display_inactive" | ||
And I press "Filtrer" | ||
Then I should see "MyCorp" | ||
When I follow the button of tooltip "Gérer les cotisations de MyCorp" | ||
Then I should see "Cotisations de MyCorp" | ||
When I follow the button of tooltip "Télécharger la facture" | ||
Then the response header "Content-disposition" should equal 'attachment; filename="MyCorp_COTIS-2018-201_13072018.pdf"' | ||
|
||
@reloadDbWithTestData | ||
Scenario: On test la gestion des cotisations | ||
Given I am logged in as admin and on the Administration | ||
And I follow "Personnes morales" | ||
And I check "also_display_inactive" | ||
And I press "Filtrer" | ||
Then I should see "MyCorp" | ||
When I follow the button of tooltip "Gérer les cotisations de MyCorp" | ||
Then I should see "Cotisations de MyCorp" | ||
When I follow the button of tooltip "Modifier la cotisation" | ||
Then I should see "Modifier une cotisation" | ||
When I fill in "montant" with "152" | ||
And I press "Modifier" | ||
Then I should see "La cotisation pour MyCorp a bien été modifiée" | ||
Then I should see "152.00" | ||
# supprimer la cotisation | ||
When I follow the button of tooltip "Supprimer la cotisation" | ||
Then I should see "La cotisation a été supprimée" | ||
# ajout d'une cotisation | ||
When I follow "Ajouter" | ||
Then I should see "Ajouter une cotisation" | ||
When I fill in "montant" with "150" | ||
And I select "0" from "type_reglement" | ||
When I fill in "informations_reglement" with "notes du réglement" | ||
When I fill in "reference_client" with "42" | ||
And I select "05" from "date_debut[d]" | ||
And I select "3" from "date_debut[F]" | ||
And I select "2022" from "date_debut[Y]" | ||
And I select "05" from "date_fin[d]" | ||
And I select "3" from "date_fin[F]" | ||
And I select "2023" from "date_fin[Y]" | ||
And I press "Ajouter" | ||
Then I should see "La cotisation jusqu'au 05 March 2023 pour MyCorp a bien été ajoutée" | ||
Then I should see "05/03/22" | ||
Then I should see "05/03/23" | ||
Then I should see "150.00" | ||
Then I should see "en espèces" |
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