Skip to content
Permalink
Browse files

MDL-52970 behat: Wait for page to be ready after click

After click enusre to wait so text fields are not
use autosize
  • Loading branch information...
Rajesh Taneja
Rajesh Taneja committed Feb 3, 2016
1 parent fee2cde commit 9b4903c8fdd6ac8e37a3e4267190f91966a21301
Showing with 3 additions and 0 deletions.
  1. +1 −0 course/tests/behat/behat_course.php
  2. +2 −0 lib/editor/atto/plugins/image/tests/behat/image.feature
@@ -139,6 +139,7 @@ public function i_add_to_section_and_i_fill_the_form_with($activity, $section, T
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.

0 comments on commit 9b4903c

Please sign in to comment.
You can’t perform that action at this time.