Skip to content

Commit

Permalink
feat (afup#1110): functional test Divers
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Oct 26, 2023
1 parent 49642e8 commit bc9caa4
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ parameters:
icon: "tag"
elements:
configuration:
nom: 'Configuration'
nom: 'Configuration du site'
niveau: 'ROLE_ADMIN'
membre_administrateur:
nom: 'Administrateurs du site'
Expand Down
19 changes: 19 additions & 0 deletions tests/behat/features/Admin/Divers/Administrateurs.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Feature: Administration - Administrateurs du site

@reloadDbWithTestData
Scenario: Afficher / modifier les administrateurs du site
Given I am logged in as admin and on the Administration
And I follow "Administrateurs du site"
Then I should see "Administrateurs du site"
And I should see "Admin Admin Actif Administrateur"
And I follow the button of tooltip "Modifier la fiche de Admin Admin"
And I should see "Modifier une personne physique"
And I fill in "user_edit_lastname" with "SuperLastnameAdmin"
And I fill in "user_edit_firstname" with "SuperFirstnameAdmin"
And I fill in "user_edit_address" with "Address"
And I fill in "user_edit_zipcode" with "77777"
And I fill in "user_edit_city" with "City"
And I press "Modifier"
Then the ".content .message" element should contain "La personne physique a été modifiée"
And I follow "Administrateurs du site"
And I should see "SuperLastnameAdmin SuperFirstnameAdmin Actif Administrateur"
12 changes: 12 additions & 0 deletions tests/behat/features/Admin/Divers/Configuration.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Feature: Administration - Configuration

@reloadDbWithTestData
Scenario: Afficher / modifier l'adresse
Given I am logged in as admin and on the Administration
And I follow "Configuration du site"
Then I should see "Configuration"
And I should see "32, Boulevard de Strasbourg CS 30108"
And I fill in "afup|adresse" with "32, Boulevard de Nantes CS 30108"
When I press "Enregistrer"
Then the ".content .message" element should contain "La configuration a été enregistrée"
And I should see "32, Boulevard de Nantes CS 30108"
8 changes: 8 additions & 0 deletions tests/behat/features/Admin/Divers/Logs.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Feature: Administration - Logs

@reloadDbWithTestData
Scenario: Afficher les logs
Given I am logged in as admin and on the Administration
And I follow "Logs"
Then I should see "Logs"
And I should see "Date Nom Prénom Texte"

0 comments on commit bc9caa4

Please sign in to comment.