From df93cb661b6dc8a359fda42362787483cb9d64e0 Mon Sep 17 00:00:00 2001 From: Mark Nielsen Date: Fri, 22 Jul 2016 11:27:28 -0700 Subject: [PATCH] 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. --- completion/tests/behat/behat_completion.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/completion/tests/behat/behat_completion.php b/completion/tests/behat/behat_completion.php index 817a5826f1b..8a0925e564c 100644 --- a/completion/tests/behat/behat_completion.php +++ b/completion/tests/behat/behat_completion.php @@ -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));