diff --git a/tests/behat/features/bootstrap/FeatureContext.php b/tests/behat/features/bootstrap/FeatureContext.php index 0d05a38936..94cfdf6f4a 100644 --- a/tests/behat/features/bootstrap/FeatureContext.php +++ b/tests/behat/features/bootstrap/FeatureContext.php @@ -55,7 +55,6 @@ class FeatureContext extends MinkContext */ public function iAmAnHR() { - $this->visit('/index.php?logout=logout'); $this->iAmOnHomepage(); $this->fillField('login', 'ptook'); $this->fillField('password', 'ptook'); @@ -67,7 +66,6 @@ class FeatureContext extends MinkContext */ public function iAmAStudentBoss() { - $this->visit('/index.php?logout=logout'); $this->iAmOnHomepage(); $this->fillField('login', 'abaggins'); $this->fillField('password', 'abaggins'); @@ -79,7 +77,6 @@ class FeatureContext extends MinkContext */ public function iAmAnInvitee() { - $this->visit('/index.php?logout=logout'); $this->iAmOnHomepage(); $this->fillField('login', 'bproudfoot'); $this->fillField('password', 'bproudfoot'); diff --git a/tests/behat/features/sessionManagement.feature b/tests/behat/features/sessionManagement.feature index 5362bff5a2..0e9c2cbc6e 100644 --- a/tests/behat/features/sessionManagement.feature +++ b/tests/behat/features/sessionManagement.feature @@ -57,8 +57,7 @@ Feature: Session management tool Then I should see "Update successful" Scenario: Check session description with platform setting off - Given I am a platform administrator - And I am on "/main/admin/settings.php?search_field=show_session_description&category=search_setting" + Given I am on "/main/admin/settings.php?search_field=show_session_description&category=search_setting" And I check the "show_session_description" radio button with "false" value And I press "Save settings" Then I am on "/user_portal.php?nosession=true" @@ -66,8 +65,7 @@ Feature: Session management tool And I should not see "Description for Temp Session" Scenario: Check session description with platform setting on - Given I am a platform administrator - And I am on "/main/admin/settings.php?search_field=show_session_description&category=search_setting" + Given I am on "/main/admin/settings.php?search_field=show_session_description&category=search_setting" And I check the "show_session_description" radio button with "true" value And I press "Save settings" Then I should see "Update successful" diff --git a/tests/behat/features/toolExercise.feature b/tests/behat/features/toolExercise.feature index 0d00acd001..c4b734ec23 100644 --- a/tests/behat/features/toolExercise.feature +++ b/tests/behat/features/toolExercise.feature @@ -356,7 +356,7 @@ Feature: Exercise tool Then I should see "Update successful" Scenario: Try exercise with categorized questions as student - Given I am a student + Given I am logged as "acostea" And I am on course "TEMP" homepage in session "Session Exercise" Then I should see "TEMP (Session Exercise)" And I am on "/main/exercise/exercise.php?cidReq=TEMP"