diff --git a/question/type/ddimageortext/tests/behat/preview.feature b/question/type/ddimageortext/tests/behat/preview.feature index 6f1c94d99f5..6f0b7238797 100644 --- a/question/type/ddimageortext/tests/behat/preview.feature +++ b/question/type/ddimageortext/tests/behat/preview.feature @@ -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 diff --git a/question/type/ddmarker/tests/behat/preview.feature b/question/type/ddmarker/tests/behat/preview.feature index be932327e9e..fbe9076a0c5 100644 --- a/question/type/ddmarker/tests/behat/preview.feature +++ b/question/type/ddmarker/tests/behat/preview.feature @@ -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"