mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
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:
parent
c987d1b2ef
commit
93be3f730c
60 changed files with 7 additions and 162 deletions
|
@ -74,7 +74,6 @@ Feature: Access visible and hidden cohorts
|
|||
|
||||
Scenario: System manager can see all cohorts defined in the above contexts
|
||||
When I log in as "user1"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Enrolment methods" node in "Course administration > Users"
|
||||
And I select "Cohort sync" from the "Add method" singleselect
|
||||
|
@ -101,7 +100,6 @@ Feature: Access visible and hidden cohorts
|
|||
|
||||
Scenario: Category manager can see all cohorts defined in his category and visible cohorts defined above
|
||||
When I log in as "user2"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Enrolment methods" node in "Course administration > Users"
|
||||
And I select "Cohort sync" from the "Add method" singleselect
|
||||
|
|
|
@ -15,11 +15,9 @@ Feature: Upload users to a cohort
|
|||
| Course 1 | C1 | 0 |
|
||||
| Course 2 | C2 | 0 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I add "Cohort sync" enrolment method with:
|
||||
| Cohort | Cohort 1 |
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 2"
|
||||
And I add "Cohort sync" enrolment method with:
|
||||
| Cohort | Cohort 2 |
|
||||
|
@ -36,13 +34,11 @@ Feature: Upload users to a cohort
|
|||
And I click on "Assign" "link" in the "Cohort 2" "table_row"
|
||||
And the "Current users" select box should contain "Mary Smith (marysmith@example.com)"
|
||||
And the "Current users" select box should contain "Alice Smith (alicesmith@example.com)"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I navigate to "Users > Enrolled users" in current page administration
|
||||
And I should see "Tom Jones"
|
||||
And I should see "Bob Jones"
|
||||
And I should not see "Mary Smith"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 2"
|
||||
And I navigate to "Users > Enrolled users" in current page administration
|
||||
And I should see "Mary Smith"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue