MDL-47494 ddwtos: Fix behat failures.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 21 May 2015 14:54:54 +0000 (15:54 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 21 May 2015 14:54:54 +0000 (15:54 +0100)
question/type/ddwtos/tests/behat/preview.feature

index 64e7792..3469f6d 100644 (file)
@@ -34,6 +34,7 @@ Feature: Preview a drag-drop into text question
     And I press "Submit and finish"
     Then the state of "The" question is shown as "Partially correct"
     And I should see "Mark 0.67 out of 1.00"
+    And I switch to the main window
 
   @javascript
   Scenario: Preview a question using the keyboard & submit incomplete.
@@ -45,6 +46,7 @@ Feature: Preview a drag-drop into text question
     And I press "Save"
     Then the state of "The" question is shown as "Incomplete answer"
     And I should see "Please put an answer in each box."
+    And I switch to the main window
 
   @javascript
   Scenario: Preview a question using the keyboard.
@@ -56,3 +58,4 @@ Feature: Preview a drag-drop into text question
     And I press "Submit and finish"
     Then the state of "The" question is shown as "Incorrect"
     And I should see "Mark 0.00 out of 1.00"
+    And I switch to the main window