Skip to content

Commit

Permalink
MDL-60590 core_enrol: fixed failing Behat scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Nov 7, 2017
1 parent 8072eb1 commit e3a6d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enrol/tests/behat/behat_enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public function i_enrol_user_as($userfullname, $rolename) {
// We have a div here, not a tr.
$this->execute('behat_forms::i_set_the_field_to', array(get_string('selectusers', 'enrol_manual'), $userfullname));

$this->execute("behat_forms::press_button", get_string('enroluserscohorts', 'enrol_manual'));
$enrolusers = get_string('enrolusers', 'enrol_manual');
$this->execute('behat_general::i_click_on_in_the', [$enrolusers, 'button', $enrolusers, 'dialogue']);

} else {
$this->execute('behat_forms::i_set_the_field_to', array(get_string('assignrole', 'role'), $rolename));
Expand Down

0 comments on commit e3a6d44

Please sign in to comment.