From 8b55f3580890617db33d07c9514813eca44df18e Mon Sep 17 00:00:00 2001 From: rajesh Taneja Date: Fri, 4 Sep 2015 10:19:52 +0800 Subject: [PATCH] MDL-51322 behat: ensure the window is properly closed This is to ensure we have other window closed so there is no race-around condition --- mod/quiz/tests/behat/manually_mark_question.feature | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/quiz/tests/behat/manually_mark_question.feature b/mod/quiz/tests/behat/manually_mark_question.feature index 30eaad05a4c..8f77bab80f5 100644 --- a/mod/quiz/tests/behat/manually_mark_question.feature +++ b/mod/quiz/tests/behat/manually_mark_question.feature @@ -42,7 +42,7 @@ Feature: Teachers can override the grade for any question And I follow "Attempts: 1" And I follow "Review attempt" - @javascript + @javascript @_switch_window @_bug_phantomjs Scenario: Validating the marking of an essay question attempt. When I follow "Make comment or override mark" And I switch to "commentquestion" window @@ -56,3 +56,6 @@ Feature: Teachers can override the grade for any question And I press "Save" And I should see "Changes saved" And I switch to the main window + And I should see "Complete" in the "Manually graded 10 with comment: " "table_row" + # This time is same as time the window is open. So wait for it to close before proceeding. + And I wait "2" seconds