Skip to content

Commit

Permalink
MDL-57314 behat: Press enter after setting password unmask
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Dec 8, 2016
1 parent 4b2bcd2 commit bd755b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/behat/form_field/behat_form_passwordunmask.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public function set_value($value) {

// Ensure all pending JS is finished.
if ($this->running_javascript()) {
// Press enter key after setting password, so we have a stable page.
$this->field->keyDown(13);
$this->field->keyPress(13);
$this->field->keyUp(13);
$this->session->wait(behat_base::TIMEOUT * 1000, behat_base::PAGE_READY_JS);
}
}
Expand Down
1 change: 0 additions & 1 deletion mod/lesson/tests/behat/lesson_user_override.feature
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ Feature: Lesson user override
And I set the following fields to these values:
| Password protected lesson | Yes |
| id_password | moodle_rules |
And I wait until the page is ready
And I press "Save and display"
And I navigate to "User overrides" in current page administration
And I press "Add user override"
Expand Down

0 comments on commit bd755b5

Please sign in to comment.