MDL-74276 report: Update behat tests to account for new page.

This commit is contained in:
Peter Dias 2022-03-25 13:10:58 +08:00
parent 3eb80e7386
commit 2c27a33213
28 changed files with 51 additions and 51 deletions

View file

@ -49,7 +49,7 @@ Feature: See the competencies for an activity
@javascript
Scenario: Go to the competency breakdown report
When I navigate to "Reports" in current page administration
And I select "Competency breakdown" from the "Report type" singleselect
And I click on "Competency breakdown" "link"
And I set the field "Filter competencies by resource or activity" to "PageName1"
Then I should see "Test-Comp1"
And I should not see "Test-Comp2"

View file

@ -21,7 +21,7 @@ Feature: In a course administration page, navigate through report page, test for
Given I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Competency breakdown" from the "Report type" singleselect
And I click on "Competency breakdown" "link"
Then "Report" "field" should exist
And the "Report" select box should contain "Competency breakdown"
And the field "Report" matches value "Competency breakdown"

View file

@ -34,5 +34,5 @@ Feature: See the completion for items in a course
And I press "Save changes"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Course completion" from the "Report type" singleselect
And I click on "Course completion" "link" in the "region-main" "region"
Then I should see "Ann, Jill, Grainne, Beauchamp"

View file

@ -27,7 +27,7 @@ Feature: In a course administration page, navigate through report page, test for
And I press "Save changes"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Course completion" from the "Report type" singleselect
And I click on "Course completion" "link" in the "region-main" "region"
Then "Report" "field" should exist
And the "Report" select box should contain "Course completion"
And the field "Report" matches value "Course completion"

View file

@ -21,7 +21,7 @@ Feature: In a course administration page, navigate through report page, test for
Given I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Logs" from the "Report type" singleselect
And I click on "Logs" "link"
Then "Report" "field" should exist
And the "Report" select box should contain "Logs"
And the field "Report" matches value "Logs"

View file

@ -69,7 +69,7 @@ Feature: User can view activity log.
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Logs" from the "Report type" singleselect
And I click on "Logs" "link"
And I set the field with xpath "//select[@name='user']" to "Ann, Jill, Grainne, Beauchamp"
When I click on "Get these logs" "button"
Then I should see "Ann, Jill, Grainne, Beauchamp"

View file

@ -21,7 +21,7 @@ Feature: In a course administration page, navigate through report page, test for
Given I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Live logs" from the "Report type" singleselect
And I click on "Live logs" "link"
Then "Report" "field" should exist
And the "Report" select box should contain "Live logs"
And the field "Report" matches value "Live logs"

View file

@ -21,7 +21,7 @@ Feature: In a course administration page, navigate through report page, test for
Given I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then "Report" "field" should exist
And the "Report" select box should contain "Activity report"
And the field "Report" matches value "Activity report"

View file

@ -46,7 +46,7 @@ Feature: Filter an outline report
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
And I should see "2 views by 2 users" in the "Book name" "table_row"
And I should see "1 views by 1 users" in the "Forum name" "table_row"
When I set the following fields to these values:
@ -79,7 +79,7 @@ Feature: Filter an outline report
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
And I should see "2 views by 2 users" in the "Book name" "table_row"
And I should see "1 views by 1 users" in the "Forum name" "table_row"
When I set the following fields to these values:

View file

@ -45,7 +45,7 @@ Feature: View an outline report
And I log in as "teacher1"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then I should see "2 views by 2 users" in the "Book name" "table_row"
And I should see "1 views by 1 users" in the "Forum name" "table_row"
@ -67,7 +67,7 @@ Feature: View an outline report
And I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then I should see "2 views by 2 users" in the "Book name" "table_row"
And I should see "1 views by 1 users" in the "Forum name" "table_row"
@ -91,7 +91,7 @@ Feature: View an outline report
And I log in as "teacher1"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then I should see "2 views by 2 users" in the "Book name" "table_row"
And I should see "1 views by 1 users" in the "Forum name" "table_row"
@ -101,7 +101,7 @@ Feature: View an outline report
And I click on "Disable" "link" in the "Standard log" "table_row"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then I should see "No log reader enabled"
Scenario: Multiple views from a single user are identified as not distinct
@ -118,7 +118,7 @@ Feature: View an outline report
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then I should see "3 views by 1 users" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"
@ -145,7 +145,7 @@ Feature: View an outline report
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then I should see "6 views by 2 users" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"
@ -154,6 +154,6 @@ Feature: View an outline report
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Activity report" from the "Report type" singleselect
And I click on "Activity report" "link"
Then I should see "-" in the "Forum name" "table_row"
And I should see "-" in the "Book name" "table_row"

View file

@ -21,7 +21,7 @@ Feature: In a course administration page, navigate through report page, test for
Given I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Course participation" from the "Report type" singleselect
And I click on "Course participation" "link"
Then "Report" "field" should exist
And the "Report" select box should contain "Course participation"
And the field "Report" matches value "Course participation"

View file

@ -43,7 +43,7 @@ Feature: In a participation report, admin can filter student actions
When I am on the "Course 1" course page logged in as admin
When I navigate to "Reports" in current page administration
And I select "Course participation" from the "Report type" singleselect
And I click on "Course participation" "link"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
And I press "Go"
@ -73,7 +73,7 @@ Feature: In a participation report, admin can filter student actions
And I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Course participation" from the "Report type" singleselect
And I click on "Course participation" "link"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
And I press "Go"
@ -87,7 +87,7 @@ Feature: In a participation report, admin can filter student actions
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Course participation" from the "Report type" singleselect
And I click on "Course participation" "link"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
And I press "Go"

View file

@ -34,7 +34,7 @@ Feature: Use the particiaption report to message groups of students
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Course participation" from the "Report type" singleselect
And I click on "Course participation" "link"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
And I press "Go"
@ -49,7 +49,7 @@ Feature: Use the particiaption report to message groups of students
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Course participation" from the "Report type" singleselect
And I click on "Course participation" "link"
And I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
And I press "Go"
@ -69,7 +69,7 @@ Feature: Use the particiaption report to message groups of students
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Course participation" from the "Report type" singleselect
And I click on "Course participation" "link"
When I set the field "instanceid" to "Test book name"
And I set the field "roleid" to "Student"
And I press "Go"

View file

@ -42,7 +42,7 @@ Feature: Teacher can view and override users' activity completion data via the p
# Teacher overrides the activity completion statuses to incomplete.
When I am on the "Course 1" course page logged in as teacher1
And I navigate to "Reports" in current page administration
And I select "Activity completion" from the "Report type" singleselect
And I click on "Activity completion" "link"
And "Ann, Jill, Grainne, Beauchamp, my assignment: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
And "Ann, Jill, Grainne, Beauchamp, my assignment 2: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
And I click on "my assignment" "link" in the "Ann, Jill, Grainne, Beauchamp" "table_row"
@ -68,7 +68,7 @@ Feature: Teacher can view and override users' activity completion data via the p
# And the activity completion report should show the same.
And I am on the "Course 1" Course page logged in as teacher1
And I navigate to "Reports" in current page administration
And I select "Activity completion" from the "Report type" singleselect
And I click on "Activity completion" "link"
And "Ann, Jill, Grainne, Beauchamp, my assignment: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
And "Ann, Jill, Grainne, Beauchamp, my assignment 2: Completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
@ -80,7 +80,7 @@ Feature: Teacher can view and override users' activity completion data via the p
# When the teacher overrides the activity completion statuses to complete.
When I am on the "Course 1" Course page logged in as teacher1
And I navigate to "Reports" in current page administration
And I select "Activity completion" from the "Report type" singleselect
And I click on "Activity completion" "link"
And "Ann, Jill, Grainne, Beauchamp, my assignment: Not completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
And "Ann, Jill, Grainne, Beauchamp, my assignment 3: Not completed" "icon" should exist in the "Ann, Jill, Grainne, Beauchamp" "table_row"
And I click on "my assignment" "link" in the "Ann, Jill, Grainne, Beauchamp" "table_row"

View file

@ -37,7 +37,7 @@ Feature: Teacher can view and filter activity completion data by group and activ
When I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Reports" in current page administration
And I select "Activity completion" from the "Report type" singleselect
And I click on "Activity completion" "link"
Then "My quiz B" "link" should appear before "My quiz A" "link" in the "completion-progress" "table"
And I should see "My assignment" in the "completion-progress" "table"
And I should see "My page" in the "completion-progress" "table"

View file

@ -27,7 +27,7 @@ Feature: In a course administration page, navigate through report page, test for
Given I log in as "admin"
And I am on "Course 1" course homepage
When I navigate to "Reports" in current page administration
And I select "Activity completion" from the "Report type" singleselect
And I click on "Activity completion" "link"
Then "Report" "field" should exist
And the "Report" select box should contain "Activity completion"
And the field "Report" matches value "Activity completion"
@ -46,6 +46,6 @@ Feature: In a course administration page, navigate through report page, test for
| showuseridentity | email,profile_field_frog |
When I am on the "C1" "Course" page logged in as "admin"
And I navigate to "Reports" in current page administration
And I select "Activity completion" from the "Report type" singleselect
And I click on "Activity completion" "link"
Then I should see "Favourite frog"
Then I should see "Kermit" in the "Student Two" "table_row"