MDL-55316 core_completion: Expand fields for Behat

This only happens if you create the course with
one user and then try to enable completion
with another user.
This commit is contained in:
Mark Nielsen
2016-07-25 09:19:35 -07:00
parent 4eeb5e469b
commit df93cb661b
@@ -102,6 +102,9 @@ class behat_completion extends behat_base {
// Go to course editing.
$this->execute("behat_general::click_link", get_string('editsettings'));
// Expand all the form fields.
$this->execute("behat_forms::i_expand_all_fieldsets");
// Enable completion.
$this->execute("behat_forms::i_set_the_field_to",
array(get_string('enablecompletion', 'completion'), $toggle));