From dabca5c457b0ec2f8e0eb32902958a7372795ea8 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 13 Nov 2020 10:10:57 +0800 Subject: [PATCH] MDL-66979 question: Improve behat test reliability Expand all fieldsets rather than individual fieldsets. This can fail in some situations where the page moves as the first fieldset opens and HTML transitions take effect. This causes subsequent fieldsets to move after WebDriver has calculated the click target. --- question/type/ddmarker/tests/behat/add.feature | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/question/type/ddmarker/tests/behat/add.feature b/question/type/ddmarker/tests/behat/add.feature index 733e457233d..ec506c2d85b 100644 --- a/question/type/ddmarker/tests/behat/add.feature +++ b/question/type/ddmarker/tests/behat/add.feature @@ -27,16 +27,15 @@ Feature: Test creating a drag and drop markers question And I set the field "Question text" to "Please place the markers on the map of Milton Keynes and be aware that there is more than one railway station." And I set the field "General feedback" to "The Open University is at the junction of Brickhill Street and Groveway. There are three railway stations, Wolverton, Milton Keynes Central and Bletchley." And I upload "question/type/ddmarker/tests/fixtures/mkmap.png" file to "Background image" filemanager + And I expand all fieldsets # Markers. - And I follow "Markers" And I set the field "id_drags_0_label" to "OU" And I set the field "id_drags_0_noofdrags" to "1" And I set the field "id_drags_1_label" to "Railway station" And I set the field "id_drags_1_noofdrags" to "3" # Drop zones. - And I follow "Drop zones" And I set the field "id_drops_0_shape" to "Circle" And I set the field "id_drops_0_coords" to "322,213;10" And I set the field "id_drops_0_choice" to "1"