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

@ -17,8 +17,7 @@ Feature: In a participation report, admin can filter student actions
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And 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 a "Book" to section "1" and I fill the form with:
| Name | Test book name |
| Description | Test book |
@ -38,11 +37,11 @@ Feature: In a participation report, admin can filter student actions
| loglegacy | 1 | logstore_legacy |
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 "Test book name"
And I log out
When I log in as "admin"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
When I navigate to "Course participation" node in "Course administration > Reports"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
@ -59,7 +58,7 @@ Feature: In a participation report, admin can filter student actions
| loglegacy | 1 | logstore_legacy |
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 "Test book name"
And I log out
And I log in as "admin"
@ -67,11 +66,11 @@ Feature: In a participation report, admin can filter student actions
And I click on "Enable" "link" in the "Standard log" "table_row"
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 "Test book name"
And I log out
And I log in as "admin"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
When I navigate to "Course participation" node in "Course administration > Reports"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
@ -81,11 +80,11 @@ Feature: In a participation report, admin can filter student actions
@javascript
Scenario: Filter participation report when only standard log reader is enabled by default
Given I log in as "student1"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Test book name"
And I log out
And I log in as "admin"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
When I navigate to "Course participation" node in "Course administration > Reports"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"

View file

@ -21,8 +21,7 @@ Feature: Use the particiaption report to message groups of students
| student2 | C1 | student |
| student3 | C1 | student |
And 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 a "Book" to section "1" and I fill the form with:
| Name | Test book name |
| Description | Test book |
@ -32,13 +31,13 @@ Feature: Use the particiaption report to message groups of students
| Content | Test chapter content |
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 "Test book name"
And I log out
Scenario: Message students who have not participated in book
Given 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 "Course participation" node in "Course administration > Reports"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
@ -60,7 +59,7 @@ Feature: Use the particiaption report to message groups of students
| messaging | 0 |
And I log out
And 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 "Course participation" node in "Course administration > Reports"
When I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"