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:
Simey Lameze 2017-03-15 15:13:09 +08:00 committed by Damyon Wiese
parent 3353cfd8c1
commit fdeeaff954
458 changed files with 1697 additions and 2148 deletions

View file

@ -24,8 +24,7 @@ Feature: Perform basic calendar functionality
| user | group |
| student1 | G1 |
When I log in as "admin"
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
Scenario: Create a site event
@ -35,7 +34,7 @@ Feature: Perform basic calendar functionality
| Description | Come join this awesome event, sucka! |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "This month"
And I should see "Really awesome event!"
And I log out
@ -50,7 +49,7 @@ Feature: Perform basic calendar functionality
| Description | Come join this awesome event, sucka! |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "This month"
And I should see "Really awesome event!"
And I log out
@ -66,7 +65,7 @@ Feature: Perform basic calendar functionality
| Description | Come join this awesome event |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "This month"
And I follow "Really awesome event!"
And "Group 1" "text" should exist in the ".eventlist" "css_element"
@ -82,7 +81,7 @@ Feature: Perform basic calendar functionality
| Description | Come join this awesome event, sucka! |
And I log out
And I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "This month"
And I should not see "Really awesome event!"

View file

@ -17,8 +17,7 @@ Feature: Limit displayed upcoming events
And I log in as "teacher1"
Scenario: I view calendar details for a future event
Given I follow "C1"
And I turn editing mode on
Given I am on "Course 1" course homepage with editing mode on
And I add the "Calendar" block
And I add the "Upcoming events" block
And I follow "This month"
@ -36,6 +35,5 @@ Feature: Limit displayed upcoming events
| Upcoming events look-ahead | 3 months |
And I press "Save changes"
And I wait to be redirected
And I am on site homepage
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I should see "Two months away event"