MDL-50163 behat: wait to ensure elements are placed properly by js.

This commit is contained in:
Rajesh Taneja
2015-11-24 11:16:44 +08:00
parent 6842738157
commit a3f22d315f
2 changed files with 6 additions and 0 deletions
@@ -49,6 +49,9 @@ Feature: Preview a drag-drop onto image question
Scenario: Preview a question using the keyboard.
When I click on "Preview" "link" in the "Drag onto image" "table_row"
And I switch to "questionpreview" window
# Increase window size and wait 2 seconds to ensure elements are placed properly by js.
And I change window size to "medium"
And I wait "2" seconds
And I type " " on place "1" in the drag and drop onto image question
And I type " " on place "2" in the drag and drop onto image question
And I type " " on place "3" in the drag and drop onto image question
@@ -45,6 +45,9 @@ Feature: Preview a drag-drop onto image question
Scenario: Preview a question using the keyboard.
When I click on "Preview" "link" in the "Drag markers" "table_row"
And I switch to "questionpreview" window
# Increase window size and wait 2 seconds to ensure elements are placed properly by js.
And I change window size to "medium"
And I wait "2" seconds
And I type "up" "89" times on marker "Railway station" in the drag and drop markers question
And I type "right" "21" times on marker "Railway station" in the drag and drop markers question
And I press "Submit and finish"