MDL-57314 behat: Press enter after setting password unmask

This commit is contained in:
Rajesh Taneja 2016-12-08 09:18:39 +08:00
parent 4b2bcd2376
commit bd755b5317
No known key found for this signature in database
GPG Key ID: B363F7FB787F80E4
2 changed files with 4 additions and 1 deletions

View File

@ -63,6 +63,10 @@ JS;
// 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);
}
}

View File

@ -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"