MDL-52970 behat: Wait for page to be ready after click
After click enusre to wait so text fields are not use autosize
This commit is contained in:
@@ -139,6 +139,7 @@ class behat_course extends behat_base {
|
||||
|
||||
return array(
|
||||
new Given('I add a "' . $this->escape($activity) . '" to section "' . $this->escape($section) . '"'),
|
||||
new Given('I wait to be redirected'),
|
||||
new Given('I set the following fields to these values:', $data),
|
||||
new Given('I press "' . get_string('savechangesandreturntocourse') . '"')
|
||||
);
|
||||
|
||||
@@ -23,6 +23,7 @@ Feature: Add images to Atto
|
||||
And the field "Width" matches value "204"
|
||||
And the field "Height" matches value "61"
|
||||
And I set the field "Auto size" to "1"
|
||||
And I wait until the page is ready
|
||||
And I set the field "Width" to "2040"
|
||||
# Trigger blur on the width field.
|
||||
And I take focus off "Width" "field"
|
||||
@@ -32,6 +33,7 @@ Feature: Add images to Atto
|
||||
And I take focus off "Height" "field"
|
||||
And the field "Width" matches value "204"
|
||||
And I set the field "Auto size" to "0"
|
||||
And I wait until the page is ready
|
||||
And I set the field "Width" to "123"
|
||||
And I set the field "Height" to "456"
|
||||
# Trigger blur on the height field.
|
||||
|
||||
Reference in New Issue
Block a user