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.
This commit is contained in:
Andrew Nicols 2020-11-13 10:10:57 +08:00
parent fd5b398488
commit cedb58f642

View File

@ -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"