This commit is contained in:
Dan Poltawski 2016-12-12 12:21:31 +00:00
commit daab2b520f
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"