Behat - Error on data_generators.feature with poodl plugin installed

Behat - Error on data_generators.feature with poodl plugin installed

by David Ligne -
Number of replies: 2

Hello everyone,

When running behat tests (Moodle 2.8.6), I get this error :
The 'Type' value is 'MP3 Voice Recorder', 'Scale' expected
    In step `And the field "Type" matches value "Scale"'.                                          # behat_forms::the_field_matches_value()
    From scenario `Add modules'.                                                                   # /app/apache2/htdocs/moodle/admin/tool/behat/tests/behat/data_generators.feature:168
    Of feature `Set up contextual data for tests'. 
      

It happens with assignsubmission_onlinepoodll or assignfeedback_poodll plugins installed.
It seems that when trying to edit assignment settings, the behat engine reads the field "Poodl Recorder Type" instead of the field "Type".

Has anyone had this error?

Attachment MDLUM-4264 01.PNG
Average of ratings: -
In reply to David Ligne

Re: Behat - Error on data_generators.feature with poodl plugin installed

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Yes, I had that problem earlier this week. As it was on a site where there is a lot of core changes and many of the behat tests need either disabling (as the customer has specifically removed the feature it is testing) or modifying, I've got into a habit of just fixing locally, rather than reporting compatibility issues.

In this case, the best fix I've come up with is to change the Behat line to:

And the field "id_modgrade_type" matches value "Scale"