mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-04-28 19:53:11 +02:00
38 lines
1.6 KiB
Gherkin
38 lines
1.6 KiB
Gherkin
Feature: Administration - Partie Site
|
|
|
|
@reloadDbWithTestData
|
|
Scenario: Ajout/modification/suppression d'une rubrique
|
|
Given I am logged in as admin and on the Administration
|
|
And I follow "Rubriques"
|
|
Then I should see "Liste des rubriques"
|
|
And I should see "Actualités"
|
|
# ajout d'une rubrique
|
|
When I follow "Ajouter"
|
|
Then I should see "Ajouter une rubrique"
|
|
When I fill in "rubrique[nom]" with "Événément"
|
|
And I fill in "rubrique[contenu]" with "contenu événements"
|
|
And I fill in "rubrique[raccourci]" with "evenements"
|
|
And I select "En ligne" from "rubrique[etat]"
|
|
And I press "Ajouter"
|
|
Then I should see "Liste des rubriques"
|
|
And the ".content table" element should contain "Événément"
|
|
# modification d'une rubrique
|
|
When I follow "modifier_10"
|
|
Then I should see "Modifier une rubrique"
|
|
When I fill in "rubrique[nom]" with "Événéments"
|
|
And I press "Modifier"
|
|
Then I should see "Liste des rubriques"
|
|
And the ".content table" element should contain "Événéments"
|
|
# Les rebriquers sont bien visibles sur la page de création d'un article
|
|
When I follow "Articles"
|
|
Then I should see "Liste des articles"
|
|
When I follow "Ajouter"
|
|
Then I should see "Ajouter un article"
|
|
Then The "id_site_rubrique" field should only contain the follow values '["", "Actualités", "Événéments"]'
|
|
|
|
# suppression d'une rubrique
|
|
When I follow "Rubriques"
|
|
And I follow "supprimer_10"
|
|
Then I should see "Liste des rubriques"
|
|
But the ".content table" element should not contain "Événements"
|