diff --git a/app/config/config.yml b/app/config/config.yml index 855f2b88d..aa0d42379 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -277,7 +277,7 @@ parameters: icon: "tag" elements: configuration: - nom: 'Configuration' + nom: 'Configuration du site' niveau: 'ROLE_ADMIN' membre_administrateur: nom: 'Administrateurs du site' diff --git a/tests/behat/features/Admin/Divers/Administrateurs.feature b/tests/behat/features/Admin/Divers/Administrateurs.feature new file mode 100644 index 000000000..1110a8b0b --- /dev/null +++ b/tests/behat/features/Admin/Divers/Administrateurs.feature @@ -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" diff --git a/tests/behat/features/Admin/Divers/Configuration.feature b/tests/behat/features/Admin/Divers/Configuration.feature new file mode 100644 index 000000000..1e7883214 --- /dev/null +++ b/tests/behat/features/Admin/Divers/Configuration.feature @@ -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" diff --git a/tests/behat/features/Admin/Divers/Logs.feature b/tests/behat/features/Admin/Divers/Logs.feature new file mode 100644 index 000000000..2a57c5819 --- /dev/null +++ b/tests/behat/features/Admin/Divers/Logs.feature @@ -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"