Travis: fix behat tests

pull/3178/head
Julio Montoya 6 years ago
parent c3cb9cc281
commit caa2b71dca
  1. 3
      tests/behat/features/bootstrap/FeatureContext.php
  2. 6
      tests/behat/features/sessionManagement.feature
  3. 2
      tests/behat/features/toolExercise.feature

@ -55,7 +55,6 @@ class FeatureContext extends MinkContext
*/ */
public function iAmAnHR() public function iAmAnHR()
{ {
$this->visit('/index.php?logout=logout');
$this->iAmOnHomepage(); $this->iAmOnHomepage();
$this->fillField('login', 'ptook'); $this->fillField('login', 'ptook');
$this->fillField('password', 'ptook'); $this->fillField('password', 'ptook');
@ -67,7 +66,6 @@ class FeatureContext extends MinkContext
*/ */
public function iAmAStudentBoss() public function iAmAStudentBoss()
{ {
$this->visit('/index.php?logout=logout');
$this->iAmOnHomepage(); $this->iAmOnHomepage();
$this->fillField('login', 'abaggins'); $this->fillField('login', 'abaggins');
$this->fillField('password', 'abaggins'); $this->fillField('password', 'abaggins');
@ -79,7 +77,6 @@ class FeatureContext extends MinkContext
*/ */
public function iAmAnInvitee() public function iAmAnInvitee()
{ {
$this->visit('/index.php?logout=logout');
$this->iAmOnHomepage(); $this->iAmOnHomepage();
$this->fillField('login', 'bproudfoot'); $this->fillField('login', 'bproudfoot');
$this->fillField('password', 'bproudfoot'); $this->fillField('password', 'bproudfoot');

@ -57,8 +57,7 @@ Feature: Session management tool
Then I should see "Update successful" Then I should see "Update successful"
Scenario: Check session description with platform setting off Scenario: Check session description with platform setting off
Given I am a platform administrator Given I am on "/main/admin/settings.php?search_field=show_session_description&category=search_setting"
And 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 check the "show_session_description" radio button with "false" value
And I press "Save settings" And I press "Save settings"
Then I am on "/user_portal.php?nosession=true" 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" And I should not see "Description for Temp Session"
Scenario: Check session description with platform setting on Scenario: Check session description with platform setting on
Given I am a platform administrator Given I am on "/main/admin/settings.php?search_field=show_session_description&category=search_setting"
And 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 check the "show_session_description" radio button with "true" value
And I press "Save settings" And I press "Save settings"
Then I should see "Update successful" Then I should see "Update successful"

@ -356,7 +356,7 @@ Feature: Exercise tool
Then I should see "Update successful" Then I should see "Update successful"
Scenario: Try exercise with categorized questions as student 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" And I am on course "TEMP" homepage in session "Session Exercise"
Then I should see "TEMP (Session Exercise)" Then I should see "TEMP (Session Exercise)"
And I am on "/main/exercise/exercise.php?cidReq=TEMP" And I am on "/main/exercise/exercise.php?cidReq=TEMP"

Loading…
Cancel
Save