Plop !
Je continue mes tests :
J'ai maintenant deux features, le premier admin.auth.feature qui contient :
# features/admin.auth.feature
Feature: Login/Logout (admin)
Testing user "admin" login/logout in/from Dotclear admin
Scenario: Login successful
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: Disconnect successful
Given I am on "/admin/index.php"
When I press "Logout admin"
Then I should be on "/admin/auth.php"
Et qui se déroule correctement. Puis un second admin.user-pref.feature qui
contient :
# 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 ?
Sinon je confirme qu'il va falloir bien plus que les quelques lignes du
README.md si on veut mettre à contribution des non-geeks pour "coder"
(parce que ça reste quand même du code, il faut être capable d'aller
chercher des id, …) des tests fonctionnels.
Franck
2014-12-24 17:13 GMT+01:00 Franck Paul <[email protected]>:
> Deprecated: The ability to pass file names to Yaml::parse() was deprecated
> in 2.2 and will be removed in 3.0. Please, pass the contents of the file
> instead. in
> /Users/franckpaul/Documents/EGO/Geekeries/Internet/htdocs/dc-mink/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php
> on line 58
>
> Deprecated: The setFallbackLocale() method is deprecated since version 2.3
> and will be removed in 3.0. Use setFallbackLocales() instead. in
> /Users/franckpaul/Documents/EGO/Geekeries/Internet/htdocs/dc-mink/vendor/symfony/translation/Symfony/Component/Translation/Translator.php
> on line 163
> Feature: Basic test
> I test login features
>
> Scenario: Login successful # features/test.feature:5
> Given I am on "/admin/auth.php" # FeatureContext::visit()
> When I fill in "user_id" with "admin" # FeatureContext::fillField()
> And I fill in "user_pwd" with "password" # FeatureContext::fillField()
> And I press "log in" #
> FeatureContext::pressButton()
> Then I should be on "/admin/index.php" #
> FeatureContext::assertPageAddress()
>
> 1 scénario (1 succès)
> 5 étapes (5 succès)
> 0m0.301s
>
> C'est normal les deprecated ?
>
> Le 21 décembre 2014 15:24, Nicolas <[email protected]> a écrit :
>
> Le 21 décembre 2014 13:00, Franck Paul <[email protected]> a
>> écrit :
>>
>> > Owi owi, en direct-live du Guil \o/
>> >
>>
>> ça peut être sympa oui.
>>
>>
>> >
>> > Le 21 décembre 2014 12:59, Kozlika <[email protected]> a écrit :
>> >
>> > > Le 21 décembre 2014 11:14, Nicolas <[email protected]> a écrit :
>> > > >
>> > > > En voilà une idée qu'elle est bonne !
>> > >
>> > >
>> > > Pâques ça vous semble trop loin ? (non je ne parle pas de "ou à la
>> > > Trinité") c'est une vraie question :-)
>> > >
>> > >
>> > > --
>> > > Anne / Kozlika
>> > > --
>> > > Dev mailing list - [email protected] -
>> > > http://ml.dotclear.org/listinfo/dev
>> > >
>> >
>> >
>> >
>> > --
>> > Franck
>> > --
>> > Dev mailing list - [email protected] -
>> > http://ml.dotclear.org/listinfo/dev
>> >
>> --
>> Dev mailing list - [email protected] -
>> http://ml.dotclear.org/listinfo/dev
>>
>
>
>
> --
> Franck
>
--
Franck
--
Dev mailing list - [email protected] - http://ml.dotclear.org/listinfo/dev