[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @report @report_outline 2 Feature: View the user page for the outline report 3 In order to ensure the user page for the outline report works as expected 4 As a student 5 I need to log in as a student and view the user page for the outline report 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | format | showreports | 10 | Course 1 | C1 | topics | 1 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | 13 | teacher1 | Teacher | 1 | [email protected] 14 | student1 | Student | 1 | [email protected] | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 When I log in as "admin" 20 And I follow "Course 1" 21 And I turn editing mode on 22 And I add a "Folder" to section "1" and I fill the form with: 23 | Name | Folder name | 24 | Description | Folder description | 25 And I add a "URL" to section "1" and I fill the form with: 26 | Name | URL name | 27 | Description | URL description | 28 | External URL | http://www.google.com | 29 30 @javascript 31 Scenario: View the user page when only the legacy log reader is enabled 32 Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging" 33 And I click on "Enable" "link" in the "Legacy log" "table_row" 34 And I click on "Disable" "link" in the "Standard log" "table_row" 35 And I set the following administration settings values: 36 | Log legacy data | 1 | 37 And I log out 38 And I log in as "student1" 39 And I follow "Course 1" 40 # We want to view this multiple times, to make sure the count is working. 41 And I follow "Folder name" 42 And I follow "Folder name" 43 And I follow "Folder name" 44 And I follow "Folder name" 45 And I follow "Course 1" 46 # We want to view this multiple times, to make sure the count is working. 47 And I follow "URL name" 48 And I follow "URL name" 49 And I follow "URL name" 50 When I navigate to "Outline report" node in "My profile settings > Activity reports" 51 Then I should see "4 views" in the "Folder name" "table_row" 52 And I should see "3 views" in the "URL name" "table_row" 53 And I navigate to "Complete report" node in "My profile settings > Activity reports" 54 And I should see "4 views" 55 And I should see "3 views" 56 57 @javascript 58 Scenario: View the user page when only the standard log reader is enabled 59 Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging" 60 And "Enable" "link" should exist in the "Legacy log" "table_row" 61 And "Disable" "link" should exist in the "Standard log" "table_row" 62 And I log out 63 And I log in as "student1" 64 And I follow "Course 1" 65 # We want to view this multiple times, to make sure the count is working. 66 And I follow "Folder name" 67 And I follow "Folder name" 68 And I follow "Folder name" 69 And I follow "Folder name" 70 And I follow "Course 1" 71 # We want to view this multiple times, to make sure the count is working. 72 And I follow "URL name" 73 And I follow "URL name" 74 And I follow "URL name" 75 When I navigate to "Outline report" node in "My profile settings > Activity reports" 76 Then I should see "4 views" in the "Folder name" "table_row" 77 And I should see "3 views" in the "URL name" "table_row" 78 And I navigate to "Complete report" node in "My profile settings > Activity reports" 79 And I should see "4 views" 80 And I should see "3 views" 81 82 @javascript 83 Scenario: View the user page when both the standard and legacy log readers are enabled 84 Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging" 85 And I click on "Enable" "link" in the "Legacy log" "table_row" 86 And "Disable" "link" should exist in the "Standard log" "table_row" 87 And I set the following administration settings values: 88 | Log legacy data | 1 | 89 And I log out 90 And I log in as "student1" 91 And I follow "Course 1" 92 # We want to view this multiple times, to make sure the count is working. 93 And I follow "Folder name" 94 And I follow "Folder name" 95 And I follow "Folder name" 96 And I follow "Folder name" 97 And I follow "Course 1" 98 # We want to view this multiple times, to make sure the count is working. 99 And I follow "URL name" 100 And I follow "URL name" 101 And I follow "URL name" 102 When I navigate to "Outline report" node in "My profile settings > Activity reports" 103 Then I should see "4 views" in the "Folder name" "table_row" 104 And I should see "3 views" in the "URL name" "table_row" 105 And I navigate to "Complete report" node in "My profile settings > Activity reports" 106 And I should see "4 views" 107 And I should see "3 views"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |