[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @enrol @enrol_guest 2 Feature: Guest users can auto-enrol themself in courses where guest access is allowed 3 In order to access courses contents 4 As a guest 5 I need to access courses as a guest 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 | student1 | Student | 1 | student1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | format | 14 | Course 1 | C1 | topics | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 And I log in as "teacher1" 19 And I follow "Course 1" 20 And I turn editing mode on 21 And I add a "Forum" to section "1" and I fill the form with: 22 | Forum name | Test forum name | 23 | Description | Test forum description | 24 25 Scenario: Allow guest access without password 26 Given I navigate to "Enrolment methods" node in "Course administration > Users" 27 And I click on "Edit" "link" in the "Guest access" "table_row" 28 And I set the following fields to these values: 29 | Allow guest access | Yes | 30 And I press "Save changes" 31 And I log out 32 And I log in as "student1" 33 And I am on site homepage 34 And I follow "Course 1" 35 When I follow "Test forum name" 36 Then I should not see "Subscribe to this forum" 37 38 Scenario: Allow guest access with password 39 Given I navigate to "Enrolment methods" node in "Course administration > Users" 40 And I click on "Edit" "link" in the "Guest access" "table_row" 41 And I set the following fields to these values: 42 | Allow guest access | Yes | 43 | Password | moodle_rules | 44 And I press "Save changes" 45 And I log out 46 And I log in as "student1" 47 And I am on site homepage 48 When I follow "Course 1" 49 Then I should see "Guest access" 50 And I set the following fields to these values: 51 | Password | moodle_rules | 52 And I press "Submit" 53 And I should see "Test forum name"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |