From 0f62dd32c73614452a0c5bfcc8bbf2cf7e650b8a Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 1 Dec 2015 15:45:05 +0800 Subject: [PATCH] MDL-52357 behat: add 2 sec delay to ensure window is stable --- question/type/ddwtos/tests/behat/preview.feature | 3 +++ 1 file changed, 3 insertions(+) diff --git a/question/type/ddwtos/tests/behat/preview.feature b/question/type/ddwtos/tests/behat/preview.feature index 7e09774aaf4..82baa16dbb7 100644 --- a/question/type/ddwtos/tests/behat/preview.feature +++ b/question/type/ddwtos/tests/behat/preview.feature @@ -28,6 +28,9 @@ Feature: Preview a drag-drop into text question Scenario: Preview a question using the mouse. When I click on "Preview" "link" in the "Drag to text" "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 drag "quick" to space "1" in the drag and drop into text question And I drag "fox" to space "2" in the drag and drop into text question And I drag "assiduous" to space "3" in the drag and drop into text question