diff --git a/mod/forum/tests/behat/forum_subscriptions_availability.feature b/mod/forum/tests/behat/forum_subscriptions_availability.feature index c613da31041..2b6a121a460 100644 --- a/mod/forum/tests/behat/forum_subscriptions_availability.feature +++ b/mod/forum/tests/behat/forum_subscriptions_availability.feature @@ -65,8 +65,22 @@ Feature: As a teacher I need to see an accurate list of subscribed users And I should not see "Student 2" And I should not see "Student 3" - @javascript - Scenario: A forced, hidden forum lists only teachers + Scenario: A forced forum does not allow to edit the subscribers + When I add a "Forum" to section "1" and I fill the form with: + | Forum name | Forced Forum 2 | + | Forum type | Standard forum for general use | + | Description | Test forum description | + | Subscription mode | Forced subscription | + | Visible | Show | + And I follow "Forced Forum 2" + And I follow "Show/edit current subscribers" + Then I should see "Teacher Teacher" + And I should see "Student 1" + And I should see "Student 2" + And I should see "Student 3" + And I should not see "Turn editing on" + + Scenario: A forced and hidden forum lists only teachers When I add a "Forum" to section "1" and I fill the form with: | Forum name | Forced Forum 2 | | Forum type | Standard forum for general use |