mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -21,8 +21,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
|
||||
Scenario: Add the block to a the course
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
When I add the "Calendar" block
|
||||
Then I should see "Events key" in the "Calendar" "block"
|
||||
|
||||
|
@ -34,8 +33,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
| id_name | Site Event |
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Calendar" block
|
||||
And I hover over today in the calendar
|
||||
Then I should see "Site Event"
|
||||
|
@ -48,13 +46,12 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
| id_name | Site Event |
|
||||
And I log out
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Calendar" block
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | Course |
|
||||
| id_name | Course Event |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Hide global events"
|
||||
And I hover over today in the calendar
|
||||
Then I should not see "Site Event"
|
||||
|
@ -63,31 +60,29 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
@javascript
|
||||
Scenario: View a course event in the calendar block
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Calendar" block
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | Course |
|
||||
| id_name | Course Event |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I hover over today in the calendar
|
||||
Then I should see "Course Event"
|
||||
|
||||
@javascript
|
||||
Scenario: Filter course events in the calendar block
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Calendar" block
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | Course |
|
||||
| id_name | Course Event |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | User |
|
||||
| id_name | User Event |
|
||||
When I am on homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Hide course events"
|
||||
And I hover over today in the calendar
|
||||
Then I should not see "Course Event"
|
||||
|
@ -96,32 +91,30 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
@javascript
|
||||
Scenario: View a user event in the calendar block
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Calendar" block
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | User |
|
||||
| id_name | User Event |
|
||||
When I am on homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I hover over today in the calendar
|
||||
Then I should see "User Event"
|
||||
|
||||
@javascript
|
||||
Scenario: Filter user events in the calendar block
|
||||
Given I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Calendar" block
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | Course |
|
||||
| id_name | Course Event |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | User |
|
||||
| id_name | User Event |
|
||||
When I am on homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Hide user events"
|
||||
And I hover over today in the calendar
|
||||
Then I should not see "User Event"
|
||||
|
@ -138,7 +131,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
| student1 | G1 |
|
||||
| student2 | G2 |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" node in "Course administration"
|
||||
And I set the following fields to these values:
|
||||
| id_groupmode | Separate groups |
|
||||
|
@ -152,12 +145,12 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
| id_name | Group Event |
|
||||
And I log out
|
||||
Then I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I hover over today in the calendar
|
||||
And I should see "Group Event"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I hover over today in the calendar
|
||||
And I should not see "Group Event"
|
||||
|
||||
|
@ -172,7 +165,7 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
| student1 | G1 |
|
||||
| student2 | G2 |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Edit settings" node in "Course administration"
|
||||
And I set the following fields to these values:
|
||||
| id_groupmode | Separate groups |
|
||||
|
@ -183,14 +176,14 @@ Feature: Enable the calendar block in a course and test it's functionality
|
|||
And I create a calendar event with form data:
|
||||
| id_eventtype | Course |
|
||||
| id_name | Course Event 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I create a calendar event with form data:
|
||||
| id_eventtype | Group |
|
||||
| id_groupid | Group 1 |
|
||||
| id_name | Group Event 1 |
|
||||
And I log out
|
||||
Then I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Hide group events"
|
||||
And I hover over today in the calendar
|
||||
And I should not see "Group Event 1"
|
||||
|
|
|
@ -21,8 +21,7 @@ Feature: Enable the calendar block in a course
|
|||
| id_name | Site Event |
|
||||
And I log out
|
||||
Then I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Calendar" block
|
||||
And I hover over today in the calendar
|
||||
And I should see "Site Event"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue