@@ -34,35 +34,29 @@ Feature: A user can control their own subscription preferences for a discussion
3434    When  I log in as "student1" 
3535    And  I am on "Course 1"  course homepage
3636    And  I follow "Test forum name" 
37-     Then  I click on "Actions menu"  "link" 
38-     And  I should see "Subscribe to this forum" 
37+     Then  I can subscribe to this forum
3938    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
4039    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
4140    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
42-     And  I click on "Actions menu"  "link" 
43-     And  I should see "Subscribe to this forum" 
41+     And  I can subscribe to this forum
4442    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
4543    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
4644    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
47-     And  I click on "Actions menu"  "link" 
48-     And  I should see "Subscribe to this forum" 
45+     And  I can subscribe to this forum
4946    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
5047    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
5148    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
52-     And  I click on "Actions menu"  "link" 
53-     And  I should see "Subscribe to this forum" 
49+     And  I can subscribe to this forum
5450    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
5551    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
56-     And  I follow  "Subscribe  to this forum" 
52+     And  I subscribe  to this forum
5753    And  I should see "Student One will be notified of new posts in 'Test forum name'" 
58-     And  I click on "Actions menu"  "link" 
59-     And  I should see "Unsubscribe from this forum" 
54+     And  I can unsubscribe from this forum
6055    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
6156    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
62-     And  I follow  "Unsubscribe  from this forum" 
57+     And  I unsubscribe  from this forum
6358    And  I should see "Student One will NOT be notified of new posts in 'Test forum name'" 
64-     And  I click on "Actions menu"  "link" 
65-     And  I should see "Subscribe to this forum" 
59+     And  I can subscribe to this forum
6660    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
6761    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
6862
@@ -83,35 +77,29 @@ Feature: A user can control their own subscription preferences for a discussion
8377    When  I log in as "student1" 
8478    And  I am on "Course 1"  course homepage
8579    And  I follow "Test forum name" 
86-     Then  I click on "Actions menu"  "link" 
87-     And  I should see "Unsubscribe from this forum" 
80+     Then  I can unsubscribe from this forum
8881    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
8982    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
9083    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
91-     And  I click on "Actions menu"  "link" 
92-     And  I should see "Unsubscribe from this forum" 
84+     And  I can unsubscribe from this forum
9385    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
9486    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
9587    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
96-     And  I click on "Actions menu"  "link" 
97-     And  I should see "Unsubscribe from this forum" 
88+     And  I can unsubscribe from this forum
9889    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
9990    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
10091    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
101-     And  I click on "Actions menu"  "link" 
102-     And  I should see "Unsubscribe from this forum" 
92+     And  I can unsubscribe from this forum
10393    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
10494    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
105-     And  I follow  "Unsubscribe  from this forum" 
95+     And  I unsubscribe  from this forum
10696    And  I should see "Student One will NOT be notified of new posts in 'Test forum name'" 
107-     And  I click on "Actions menu"  "link" 
108-     And  I should see "Subscribe to this forum" 
97+     And  I can subscribe to this forum
10998    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
11099    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
111-     And  I follow  "Subscribe  to this forum" 
100+     And  I subscribe  to this forum
112101    And  I should see "Student One will be notified of new posts in 'Test forum name'" 
113-     And  I click on "Actions menu"  "link" 
114-     And  I should see "Unsubscribe from this forum" 
102+     And  I can unsubscribe from this forum
115103    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
116104    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
117105
@@ -132,13 +120,11 @@ Feature: A user can control their own subscription preferences for a discussion
132120    And  I log in as "student1" 
133121    And  I am on "Course 1"  course homepage
134122    And  I follow "Test forum name" 
135-     And  I click on "Actions menu"  "link" 
136-     And  I should see "Subscribe to this forum" 
123+     And  I can subscribe to this forum
137124    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
138125    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
139126    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
140-     And  I click on "Actions menu"  "link" 
141-     And  I should see "Subscribe to this forum" 
127+     And  I can subscribe to this forum
142128    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
143129    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
144130    And  I log out
@@ -153,14 +139,12 @@ Feature: A user can control their own subscription preferences for a discussion
153139    And  I log in as "student1" 
154140    And  I am on "Course 1"  course homepage
155141    And  I follow "Test forum name" 
156-     And  I click on "Actions menu"  "link" 
157-     And  I should see "Unsubscribe from this forum" 
142+     And  I can unsubscribe from this forum
158143    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
159144    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
160-     When  I follow  "Unsubscribe  from this forum" 
145+     When  I unsubscribe  from this forum
161146    Then  I should see "Student One will NOT be notified of new posts in 'Test forum name'" 
162-     And  I click on "Actions menu"  "link" 
163-     And  I should see "Subscribe to this forum" 
147+     And  I can subscribe to this forum
164148    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
165149    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
166150
@@ -181,13 +165,11 @@ Feature: A user can control their own subscription preferences for a discussion
181165    And  I log in as "student1" 
182166    And  I am on "Course 1"  course homepage
183167    And  I follow "Test forum name" 
184-     And  I click on "Actions menu"  "link" 
185-     And  I should see "Subscribe to this forum" 
168+     And  I can subscribe to this forum
186169    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
187170    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
188171    And  I click on "label[for^=subscription-toggle]"  "css_element"  in the "Test post subject one"  "table_row" 
189-     And  I click on "Actions menu"  "link" 
190-     And  I should see "Subscribe to this forum" 
172+     And  I can subscribe to this forum
191173    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
192174    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
193175    And  I log out
@@ -202,14 +184,12 @@ Feature: A user can control their own subscription preferences for a discussion
202184    And  I log in as "student1" 
203185    And  I am on "Course 1"  course homepage
204186    And  I follow "Test forum name" 
205-     And  I click on "Actions menu"  "link" 
206-     And  I should see "Unsubscribe from this forum" 
187+     And  I can unsubscribe from this forum
207188    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
208189    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
209-     When  I follow  "Unsubscribe  from this forum" 
190+     When  I unsubscribe  from this forum
210191    And  I should see "Student One will NOT be notified of new posts in 'Test forum name'" 
211-     And  I click on "Actions menu"  "link" 
212-     Then  I should see "Subscribe to this forum" 
192+     And  I can subscribe to this forum
213193    And  "Unsubscribe from this discussion"  "checkbox"  should exist in the "Test post subject one"  "table_row" 
214194    And  "Subscribe to this discussion"  "checkbox"  should exist in the "Test post subject two"  "table_row" 
215195
0 commit comments