# features/admin.user-pref.feature
Feature: User-prefs (admin)
Testing user-pref settings for "admin" user
Scenario: login
Given I am on "/admin/auth.php"
When I fill in "user_id" with "admin"
And I fill in "user_pwd" with "password"
And I press "log in"
Then I should be on "/admin/index.php"
Scenario: Change language
Given I am on "/admin/index.php"
When I go to "/admin/preferences.php"
And I select "fr" from "user_lang"
And I press "Update my profil"
Then I should be on "/admin/preferences.php"
And I should see "Personal information has been successfully updated."
in "content"
Qui plante lamentablement parce qu'il ne trouve pas le champ "user_lang"
sur la page (alors qu'il y est).
1. Suis-je censé refaire la manip de login avant de tester autre chose ?
2. Un scénario tourne-t-il dans le contexte dans lequel s'est terminé le
précédent ?
3. Pourquoi ça merde ?
J'avais inséré l'authentification comme test basique. Chaque scénario
est lancé avec sa session spécifique.
Pour tester un cas d'usage, il faut d'abord ajouter un élément de
contexte du type :
Given I am logged in as "admin" with "password"
...
Sachant que ce Given I am logged in est à coder, il fait partie de ma
todo list :)
--
Bruno