MDL-65538 competency: fix behat errors with firefox
commit8504b17c4a65493bc7ebaa9a7089c20f8a69631b
authorSara Arjona <sara@moodle.com>
Mon, 15 Jul 2019 12:22:42 +0000 (15 14:22 +0200)
committerSara Arjona <sara@moodle.com>
Mon, 15 Jul 2019 12:22:46 +0000 (15 14:22 +0200)
tree29fb8fb5f721d8b14a65d57eb00d51a4070dda18
parent5701d69f995c9721a46b69f5c122380e4e93efa8
MDL-65538 competency: fix behat errors with firefox

There is a random behat error in 3.7 and master when executing the "Go to
the competency course competencies page." scenario: "Moodle exception: A
required parameter (courseid) was missing More information about this error".
It happens because sometimes the form is sent before the JS and it hasn't
the needed parameters defined. So they have been added as hidden to the
form to avoid the error (which I couldn't reproduce manually).
admin/tool/lp/templates/user_competency_course_navigation.mustache
report/competency/templates/user_course_navigation.mustache