From a30e1c3192761c862ceb5b98832f9d0489239da7 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Fri, 3 Feb 2017 12:53:24 +0800 Subject: [PATCH] MDL-57851 behat: Add some more wait for scenario to pass On slow machine with phnatomjs profile this scenario keeps failing. Add some more wait to ensure the page is stable and next step can be executed --- mod/quiz/tests/behat/editing_section_headings.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/quiz/tests/behat/editing_section_headings.feature b/mod/quiz/tests/behat/editing_section_headings.feature index fb12326f93e..aa6ac70652e 100644 --- a/mod/quiz/tests/behat/editing_section_headings.feature +++ b/mod/quiz/tests/behat/editing_section_headings.feature @@ -149,6 +149,7 @@ Feature: Edit quiz page - section headings And I follow "Remove heading 'Heading 2'" And I should see "Are you sure you want to remove the 'Heading 2' section heading?" And I click on "Yes" "button" in the "Confirm" "dialogue" + And I wait until the page is ready And I wait until "Heading 2" "text" does not exist Then I should see "Heading 1" And I should not see "Heading 2"