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?
Behat - Error on data_generators.feature with poodl plugin installed
by David Ligne -
Number of replies: 2
In reply to David Ligne
Re: Behat - Error on data_generators.feature with poodl plugin installed
by Davo Smith -
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"
In reply to Davo Smith
Re: Behat - Error on data_generators.feature with poodl plugin installed
by David Ligne -
Thank you Davo.
I've used a similar fix : And the field "grade[modgrade_type]" matches value "Scale".
I've reported it on Moodle Tracker : https://tracker.moodle.org/browse/MDL-50844.