MDL-47588 question behat tests: don't close the preview window.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 14 Oct 2014 14:10:59 +0000 (15:10 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 20 Oct 2014 11:10:15 +0000 (12:10 +0100)
If you do. Chrome + Selenium2 gets stuck (on Windows at least). Selenium
must be trying to send commands ot a window that does not exist any
more.

question/tests/behat/edit_questions.feature
question/tests/behat/preview_question.feature

index e9f3987..b5269bd 100644 (file)
@@ -40,5 +40,4 @@ Feature: A teacher can edit questions in the question bank
     And I switch to "questionpreview" window
     And I should see "Edited question name"
     And I should see "Write a lot about what you want"
-    And I press "Close preview"
     And I switch to the main window
index 45ad854..1065fb3 100644 (file)
@@ -42,5 +42,4 @@ Feature: A teacher can preview questions in the question bank
     And I press "Start again"
     And I press "Fill in correct responses"
     And the field "Answer:" matches value "2"
-    And I press "Close preview"
     And I switch to the main window