mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-70152-master' of https://github.com/andelacruz/moodle
This commit is contained in:
commit
9611669cae
81 changed files with 638 additions and 1258 deletions
|
@ -20,22 +20,14 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
|
|||
| course | C1 |
|
||||
| idnumber | 0001 |
|
||||
| name | Test forum name |
|
||||
| intro | Test forum description |
|
||||
| section | 1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I turn editing mode on
|
||||
And I am on the "Course 1" "enrolment methods" page
|
||||
And I am on the "Course 1" "enrolment methods" page logged in as teacher1
|
||||
|
||||
Scenario: Allow guest access without password
|
||||
Given I click on "Edit" "link" in the "Guest access" "table_row"
|
||||
And I set the following fields to these values:
|
||||
| Allow guest access | Yes |
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "Test forum name"
|
||||
When I am on the "Test forum name" "forum activity" page logged in as student1
|
||||
Then I should not see "Subscribe to this forum"
|
||||
|
||||
Scenario: Allow guest access with password
|
||||
|
@ -44,9 +36,7 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
|
|||
| Allow guest access | Yes |
|
||||
| Password | moodle_rules |
|
||||
And I press "Save changes"
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
When I am on "Course 1" course homepage
|
||||
When I am on the "Course 1" course page logged in as student1
|
||||
Then I should see "Guest access"
|
||||
And I set the following fields to these values:
|
||||
| Password | moodle_rules |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue