Merge branch 'MDL-47946-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
@@ -35,23 +35,23 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I follow "Course 1"
|
||||
And I follow "Test forum name"
|
||||
Then I should see "Subscribe to this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "Not subscribed. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "You are not subscribed to this discussion. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "You are subscribed to this discussion. Click to unsubscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "Not subscribed. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "You are not subscribed to this discussion. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I follow "Subscribe to this forum"
|
||||
And I follow "Continue"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
@@ -60,8 +60,8 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I follow "Unsubscribe from this forum"
|
||||
And I follow "Continue"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
|
||||
Scenario: An automatic subscription forum can have discussions unsubscribed from
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
@@ -85,9 +85,9 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I click on "You are subscribed to this discussion. Click to unsubscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "Not subscribed. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I click on "You are not subscribed to this discussion. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
@@ -95,13 +95,13 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I click on "You are subscribed to this discussion. Click to unsubscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I follow "Unsubscribe from this forum"
|
||||
And I follow "Continue"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I follow "Subscribe to this forum"
|
||||
And I follow "Continue"
|
||||
And I should see "Unsubscribe from this forum"
|
||||
@@ -125,13 +125,13 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I follow "Course 1"
|
||||
And I follow "Test forum name"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "Not subscribed. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "You are not subscribed to this discussion. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And I follow "Course 1"
|
||||
@@ -151,7 +151,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I follow "Continue"
|
||||
Then I should see "Subscribe to this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
|
||||
Scenario: A user does not lose their preferences when a forum is switch from optional to automatic
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
@@ -170,13 +170,13 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I follow "Course 1"
|
||||
And I follow "Test forum name"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "Not subscribed. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I click on "You are not subscribed to this discussion. Click to subscribe." "link" in the "Test post subject one" "table_row"
|
||||
And I follow "Continue"
|
||||
And I should see "Subscribe to this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I log out
|
||||
And I log in as "admin"
|
||||
And I follow "Course 1"
|
||||
@@ -196,7 +196,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I follow "Continue"
|
||||
Then I should see "Subscribe to this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
|
||||
Scenario: An optional forum prompts a user to subscribe to a discussion when posting unless they have already chosen not to subscribe
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
@@ -225,7 +225,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
| Discussion subscription | I don't want email copies of posts to this discussion |
|
||||
And I follow "Test forum name"
|
||||
Then "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I follow "Test post subject one"
|
||||
And I follow "Reply"
|
||||
And the field "Discussion subscription" matches value "Send me email copies of posts to this discussion"
|
||||
@@ -261,7 +261,7 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
| Discussion subscription | I don't want email copies of posts to this discussion |
|
||||
And I follow "Test forum name"
|
||||
Then "You are subscribed to this discussion. Click to unsubscribe." "link" should exist in the "Test post subject one" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
|
||||
And I follow "Test post subject one"
|
||||
And I follow "Reply"
|
||||
And the field "Discussion subscription" matches value "Send me email copies of posts to this discussion"
|
||||
@@ -282,10 +282,10 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
And I log out
|
||||
When I log in as "guest"
|
||||
And I follow "Test forum name"
|
||||
Then "Not subscribed. Click to subscribe." "link" should not exist in the "Test post subject one" "table_row"
|
||||
Then "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject one" "table_row"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should not exist in the "Test post subject one" "table_row"
|
||||
And I follow "Test post subject one"
|
||||
And "Not subscribed. Click to subscribe." "link" should not exist
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should not exist
|
||||
|
||||
Scenario: A user who is not logged in should not be able to subscribe to a discussion
|
||||
@@ -299,8 +299,8 @@ Feature: A user can control their own subscription preferences for a discussion
|
||||
| Message | Test post message one |
|
||||
And I log out
|
||||
When I follow "Test forum name"
|
||||
Then "Not subscribed. Click to subscribe." "link" should not exist in the "Test post subject one" "table_row"
|
||||
Then "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject one" "table_row"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should not exist in the "Test post subject one" "table_row"
|
||||
And I follow "Test post subject one"
|
||||
And "Not subscribed. Click to subscribe." "link" should not exist
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should not exist
|
||||
|
||||
@@ -34,7 +34,7 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
Then I should not see "Subscribe to this forum"
|
||||
And I should not see "Unsubscribe from this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||
|
||||
Scenario: A forced subscription forum cannot be subscribed to
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
@@ -52,7 +52,7 @@ Feature: A user can control their own subscription preferences for a forum
|
||||
Then I should not see "Subscribe to this forum"
|
||||
And I should not see "Unsubscribe from this forum"
|
||||
And "You are subscribed to this discussion. Click to unsubscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||
And "Not subscribed. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||
And "You are not subscribed to this discussion. Click to subscribe." "link" should not exist in the "Test post subject" "table_row"
|
||||
|
||||
Scenario: An optional forum can be subscribed to
|
||||
Given I add a "Forum" to section "1" and I fill the form with:
|
||||
|
||||
Reference in New Issue
Block a user