Skip to content

Commit

Permalink
Merge branch 'MDL-48035-master-enfix' of git://github.com/mudrd8mz/mo…
Browse files Browse the repository at this point in the history
…odle
  • Loading branch information
stronk7 committed Nov 6, 2014
2 parents a211c54 + f7dd19f commit ed34ab4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/forum/tests/behat/discussion_subscriptions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Feature: A user can control their own subscription preferences for a discussion
And I reply "Test post subject two" post from "Test forum name" forum with:
| Subject | Reply 1 to discussion 1 |
| Message | Discussion contents 1, second message |
| Discussion subscription | I don't want email copies of posts to this discussion |
| Discussion subscription | I don't want to be notified of new posts in 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 "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
Expand All @@ -232,7 +232,7 @@ Feature: A user can control their own subscription preferences for a discussion
And I follow "Test forum name"
And I follow "Test post subject two"
And I follow "Reply"
And the field "Discussion subscription" matches value "I don't want email copies of posts to this discussion"
And the field "Discussion subscription" matches value "I don't want to be notified of new posts in this discussion"

Scenario: An automatic 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:
Expand All @@ -258,7 +258,7 @@ Feature: A user can control their own subscription preferences for a discussion
And I reply "Test post subject two" post from "Test forum name" forum with:
| Subject | Reply 1 to discussion 1 |
| Message | Discussion contents 1, second message |
| Discussion subscription | I don't want email copies of posts to this discussion |
| Discussion subscription | I don't want to be notified of new posts in 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 "You are not subscribed to this discussion. Click to subscribe." "link" should exist in the "Test post subject two" "table_row"
Expand All @@ -268,7 +268,7 @@ Feature: A user can control their own subscription preferences for a discussion
And I follow "Test forum name"
And I follow "Test post subject two"
And I follow "Reply"
And the field "Discussion subscription" matches value "I don't want email copies of posts to this discussion"
And the field "Discussion subscription" matches value "I don't want to be notified of new posts in this discussion"

Scenario: A guest should not be able to subscribe to a discussion
Given I click on "Home" "link" in the "Navigation" "block"
Expand Down

0 comments on commit ed34ab4

Please sign in to comment.