moodle/mod/workshop/tests/behat
David Mudrák 395bca32a1 MDL-64862 workshop: Fix grades to pass editing
There was a bug here that had not exposed until MDL-60820 introduced the
call $mform->setDefault() at the bottom of the definition_after_data()
method. That call triggers the 'updateValue' event on all form elements.
For input text elements, this effectively sets their value to the
default one, which was empty in this case due to the way how the value
had been set.

The solution here is to set the value via the same way like the normal
set_data() method does it.

The attached Behat test reproduces the problem and makes sure the patch
works.
2019-02-18 14:40:02 +01:00
..
behat_mod_workshop.php MDL-40759 icons: Behat fixes for font-awesome 2017-03-17 15:52:18 +08:00
delete_submission.feature MDL-60820 workshop: Allow teacher to specify submission types 2018-08-31 14:48:29 +02:00
embedded_images.feature MDL-61973 editor_atto: apply string changes to behat tests 2018-05-12 01:24:26 +02:00
example_submission.feature MDL-58265 core_test: replace I turn editing on steps 2017-04-03 11:37:07 +08:00
export_submission.feature MDL-60820 workshop: Allow teacher to specify submission types 2018-08-31 14:48:29 +02:00
file_type_restriction.feature MDL-60820 workshop: Allow teacher to specify submission types 2018-08-31 14:48:29 +02:00
grade_to_pass.feature MDL-64862 workshop: Fix grades to pass editing 2019-02-18 14:40:02 +01:00
submission_types.feature MDL-60820 workshop: Allow teacher to specify submission types 2018-08-31 14:48:29 +02:00
workshop_assessment.feature MDL-60820 workshop: Allow teacher to specify submission types 2018-08-31 14:48:29 +02:00
workshop_late_submission.feature MDL-60991 Workshop: Display late submission text after deadline 2018-03-01 13:51:46 +00:00