Skip to content

Commit

Permalink
MDL-55316 core_completion: Expand fields for Behat
Browse files Browse the repository at this point in the history
This only happens if you create the course with
one user and then try to enable completion
with another user.
  • Loading branch information
polothy committed Jul 25, 2016
1 parent 4eeb5e4 commit df93cb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions completion/tests/behat/behat_completion.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public function completion_is_toggled_in_course($completionstatus) {
// 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));
Expand Down

0 comments on commit df93cb6

Please sign in to comment.