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-22 11:27:28 -07:00
parent 90a8bdbfc0
commit 2b509dbc01

View File

@ -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));