MDL-57595 behat: Added redirect and wait to ensure next step pass

This commit is contained in:
Rajesh Taneja
2017-01-09 12:02:53 +08:00
parent 8ed0851a5e
commit 5d2988fc8a
2 changed files with 3 additions and 1 deletions
@@ -149,7 +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"
And I should see "Heading 3"
@@ -47,6 +47,7 @@ Feature: Scorm multi-sco completion
And I follow "Exit activity"
And I wait until the page is ready
Then I should see "Basic Multi-sco SCORM package"
And I am on homepage
And I log out
And I log in as "teacher1"
And I follow "Course 1"
@@ -184,6 +185,7 @@ Feature: Scorm multi-sco completion
And I follow "Exit activity"
And I wait until the page is ready
Then I should see "ADV Multi-sco SCORM package"
And I am on homepage
And I log out
And I log in as "teacher1"
And I follow "Course 1"