From 01095dbfd6f35b01128212918157cb8217048bca Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Wed, 18 Jan 2017 12:46:11 +0800 Subject: [PATCH] MDL-45821 behat: navigate back to scorm to avoid scroll On Exiting scrom activity, it goes back to course and scrolls to section. On slow machines next step fails. To avoid such case navigate to home screen and then follow next step. --- .../tests/behat/completion_condition_require_status.feature | 1 + mod/scorm/tests/behat/multisco_review_mode.feature | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mod/scorm/tests/behat/completion_condition_require_status.feature b/mod/scorm/tests/behat/completion_condition_require_status.feature index e6ef3ee2a06..8ec5c8c6052 100644 --- a/mod/scorm/tests/behat/completion_condition_require_status.feature +++ b/mod/scorm/tests/behat/completion_condition_require_status.feature @@ -84,6 +84,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" diff --git a/mod/scorm/tests/behat/multisco_review_mode.feature b/mod/scorm/tests/behat/multisco_review_mode.feature index 4195df14494..c39c71fe8fb 100644 --- a/mod/scorm/tests/behat/multisco_review_mode.feature +++ b/mod/scorm/tests/behat/multisco_review_mode.feature @@ -45,6 +45,8 @@ Feature: Scorm multi-sco review mode. And I follow "Exit activity" And I wait until the page is ready And I should see "Basic Multi-sco SCORM package" + And I am on homepage + And I follow "Course 1" And I follow "Basic Multi-sco SCORM package" And I should see "Normal" And I press "Enter" @@ -166,6 +168,8 @@ Feature: Scorm multi-sco review mode. And I follow "Exit activity" And I wait until the page is ready And I should see "ADV Multi-sco SCORM package" + And I am on homepage + And I follow "Course 1" And I follow "ADV Multi-sco SCORM package" And I should see "Normal" And I press "Enter"