From 71c6272dfe5cfe308121ffb7ecebc68af6785869 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 5 Aug 2015 01:34:29 +0200 Subject: [PATCH] MDL-35027 mod_forum: verify forced subscriptions cannot be edited This commit adds a new scenario to verify that the option to turn edition of subscribers is not available anymore for forced-subscription activities. It also gets rid of the @javascript tag in a just introduced scenario not needing it. --- .../forum_subscriptions_availability.feature | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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 |