Merge branch 'MDL-70152-master' of https://github.com/andelacruz/moodle

This commit is contained in:
Ilya Tregubov 2023-06-14 13:24:06 +08:00
commit 9611669cae
No known key found for this signature in database
GPG key ID: 0F58186F748E55C1
81 changed files with 638 additions and 1258 deletions

View file

@ -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 |