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,7 +24,7 @@ Feature: In a report, admin can filter log data
And the following config values are set as admin:
| loglegacy | 1 | logstore_legacy |
And I follow "Home"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "Log in as" "link"
@ -44,7 +44,7 @@ Feature: In a report, admin can filter log data
@javascript
Scenario: Filter log report for standard log reader
Given I am on course page "Course 1"
Given I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "Log in as" "link"
@ -65,9 +65,9 @@ Feature: In a report, admin can filter log data
And the following config values are set as admin:
| loglegacy | 1 | logstore_legacy |
And I follow "Home"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Home"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Student 1"
And I click on "Log in as" "link"

View file

@ -9,14 +9,13 @@ Feature: In a report, admin can filter log data by action
| fullname | shortname | category | groupmode |
| Course 1 | C1 | 0 | 1 |
And 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
# Create Action.
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment 1 |
| Description | Offline text |
| assignsubmission_file_enabled | 0 |
And I am on course page "Course 1"
And I am on "Course 1" course homepage
# View Action.
And I follow "Test assignment 1"
# Update Action.

View file

@ -17,8 +17,7 @@ Feature: User can view activity log.
| 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 "Assignment" to section "1" and I fill the form with:
| Assignment name | Test assignment name |
| Description | Submit your online text |
@ -26,7 +25,7 @@ Feature: User can view activity log.
| assignsubmission_file_enabled | 0 |
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 assignment name"
When I press "Add submission"
And I set the following fields to these values:
@ -37,7 +36,7 @@ Feature: User can view activity log.
@javascript
Scenario: View Todays' and all log report for user
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 participants
And I follow "Student 1"
When I follow "Today's logs"
@ -53,7 +52,7 @@ Feature: User can view activity log.
And I click on "Disable" "link" in the "Standard log" "table_row"
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 participants
And I follow "Student 1"
When I follow "Today's logs"

View file

@ -13,8 +13,7 @@ Feature: In a report, admin can see loglive data
And I click on "Enable" "link" in the "Legacy log" "table_row"
And the following config values are set as admin:
| loglegacy | 1 | logstore_legacy |
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 "Database" to section "3" and I fill the form with:
| Name | Test name |
| Description | Test database description |
@ -38,9 +37,9 @@ Feature: In a report, admin can see loglive data
And I wait to be redirected
And I should not see "Test name2"
And I press "Pause live updates"
And I am on course page "Course module created"
And I follow "Course module created"
And I switch to "action" window
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I add a "Database" to section "3" and I fill the form with:
| Name | Test name2 |
| Description | Test database description |
@ -60,9 +59,9 @@ Feature: In a report, admin can see loglive data
And I wait to be redirected
And I should not see "Test name2"
And I press "Pause live updates"
And I am on course page "Course_add mod"
And I follow "course_add mod"
And I switch to "action" window
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I add a "Database" to section "3" and I fill the form with:
| Name | Test name2 |
| Description | Test database description |

View file

@ -19,8 +19,7 @@ Feature: View an outline report
| student1 | C1 | student |
| student2 | C1 | student |
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 a "Forum" to section "1" and I fill the form with:
| Forum name | Forum name |
| Description | Forum description |
@ -36,17 +35,17 @@ Feature: View an outline report
| 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 "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Book name"
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 follow "Book name"
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
When I navigate to "Activity report" node in "Course administration > Reports"
Then I should see "2 by 2 users" in the "Book name" "table_row"
And I should see "1 by 1 users" in the "Forum name" "table_row"
@ -57,17 +56,17 @@ Feature: View an outline report
And "Disable" "link" should exist 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 "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Book name"
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 follow "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 "Activity report" node in "Course administration > Reports"
Then I should see "2 by 2 users" in the "Book name" "table_row"
And I should see "1 by 1 users" in the "Forum name" "table_row"
@ -80,17 +79,17 @@ Feature: View an outline report
| 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 "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Book name"
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 follow "Book name"
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
When I navigate to "Activity report" node in "Course administration > Reports"
Then I should see "2 by 2 users" in the "Book name" "table_row"
And I should see "1 by 1 users" in the "Forum name" "table_row"
@ -99,23 +98,23 @@ Feature: View an outline report
Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging"
And "Enable" "link" should exist in the "Legacy log" "table_row"
And I click on "Disable" "link" in the "Standard log" "table_row"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
When I navigate to "Activity report" node in "Course administration > Reports"
Then I should see "No log reader enabled"
Scenario: Multiple views from a single user are identified as not distinct
Given 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 "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Forum name"
And I am on site homepage
And I log out
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 "Activity report" node in "Course administration > Reports"
Then I should see "3 by 1 users" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"
@ -123,25 +122,25 @@ Feature: View an outline report
Scenario: Multiple views from multiple users are identified as not distinct
Given 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 "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Forum name"
And I am on site homepage
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 follow "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Forum name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
And I follow "Forum name"
And I am on site homepage
And I log out
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 "Activity report" node in "Course administration > Reports"
Then I should see "6 by 2 users" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"
@ -149,7 +148,7 @@ Feature: View an outline report
Scenario: No views from any users
Given I log out
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 "Activity report" node in "Course administration > Reports"
Then I should see "-" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"

View file

@ -17,8 +17,7 @@ Feature: View the user page for the outline report
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
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 a "Folder" to section "1" and I fill the form with:
| Name | Folder name |
| Description | Folder description |
@ -35,13 +34,13 @@ Feature: View the user page for the outline report
| 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
# We want to view this multiple times, to make sure the count is working.
And I follow "Folder name"
And I follow "Folder name"
And I follow "Folder name"
And I follow "Folder name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
# We want to view this multiple times, to make sure the count is working.
And I follow "URL name"
And I follow "URL name"
@ -63,13 +62,13 @@ Feature: View the user page for the outline report
And "Disable" "link" should exist 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
# We want to view this multiple times, to make sure the count is working.
And I follow "Folder name"
And I follow "Folder name"
And I follow "Folder name"
And I follow "Folder name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
# We want to view this multiple times, to make sure the count is working.
And I follow "URL name"
And I follow "URL name"
@ -93,13 +92,13 @@ Feature: View the user page for the outline report
| 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
# We want to view this multiple times, to make sure the count is working.
And I follow "Folder name"
And I follow "Folder name"
And I follow "Folder name"
And I follow "Folder name"
And I am on course page "Course 1"
And I am on "Course 1" course homepage
# We want to view this multiple times, to make sure the count is working.
And I follow "URL name"
And I follow "URL name"

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"