MDL-58265 core_test: remove unnecessary steps

This commmit removes steps that take behat to site home page
to actually get to a course page.

Part of MDL-55611 epic.
This commit is contained in:
Simey Lameze 2017-03-14 14:01:03 +08:00 committed by Damyon Wiese
parent c987d1b2ef
commit 93be3f730c
60 changed files with 7 additions and 162 deletions

View file

@ -30,7 +30,6 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
And I press "Save changes"
And I log out
And I log in as "student1"
And I am on site homepage
And I am on course page "Course 1"
When I follow "Test forum name"
Then I should not see "Subscribe to this forum"
@ -44,7 +43,6 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
And I press "Save changes"
And I log out
And I log in as "student1"
And I am on site homepage
When I am on course page "Course 1"
Then I should see "Guest access"
And I set the following fields to these values:

View file

@ -34,14 +34,12 @@ Feature: Users can be defined as key holders in courses where self enrolment is
@javascript
Scenario: The key holder name is displayed on site home page
Given I log in as "admin"
And I am on site homepage
And I am on course page "Course 1"
When I add "Self enrolment" enrolment method with:
| Custom instance name | Test student enrolment |
| Enrolment key | moodle_rules |
And I log out
And I log in as "student1"
And I am on site homepage
And I am on course page "Course 1"
And I should see "You should have received this enrolment key from:"
And I should see "Manager 1"

View file

@ -38,7 +38,6 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
| Custom instance name | Test student enrolment |
And I log out
And I log in as "student1"
And I am on site homepage
And I am on course page "Course 1"
And I press "Enrol me"
Then I should see "Topic 1"
@ -52,7 +51,6 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
| Enrolment key | moodle_rules |
And I log out
And I log in as "student1"
And I am on site homepage
And I am on course page "Course 1"
And I set the following fields to these values:
| Enrolment key | moodle_rules |
@ -63,7 +61,6 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
Scenario: Self-enrolment disabled
Given I log in as "student1"
And I am on site homepage
When I am on course page "Course 1"
Then I should see "You can not enrol yourself in this course"
@ -83,7 +80,6 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
And I press "Save changes"
And I log out
And I log in as "student1"
And I am on site homepage
And I am on course page "Course 1"
And I set the following fields to these values:
| Enrolment key | Test-groupenrolkey1 |