Commit 318eef83c527073f97d6798d9b8dd1fee8ab43d8
1 parent
8196cacf
Exists in
master
and in
29 other branches
edit-article-feature: fix selenium tests
Was necessary to include "should see" on the links before following them in order for the test to work.
Showing
1 changed file
with
15 additions
and
1 deletions
Show diff stats
features/edit_article.feature
... | ... | @@ -35,7 +35,9 @@ Feature: edit article |
35 | 35 | And "Maria Silva" is a member of "Free Software" |
36 | 36 | And I am on freesoftware's control panel |
37 | 37 | And I follow "Manage Content" |
38 | + And I should see "New content" | |
38 | 39 | And I follow "New content" |
40 | + And I should see "Folder" | |
39 | 41 | When I follow "Folder" |
40 | 42 | And I fill in "Title" with "My Folder" |
41 | 43 | And I choose "article_published_false" |
... | ... | @@ -57,7 +59,9 @@ Feature: edit article |
57 | 59 | And "Maria Silva" is a member of "Free Software" |
58 | 60 | And I am on freesoftware's control panel |
59 | 61 | And I follow "Manage Content" |
62 | + And I should see "New content" | |
60 | 63 | And I follow "New content" |
64 | + And I should see "Folder" | |
61 | 65 | When I follow "Folder" |
62 | 66 | And I fill in "Title" with "My Folder" |
63 | 67 | And I choose "article_published_false" |
... | ... | @@ -108,14 +112,17 @@ Feature: edit article |
108 | 112 | Scenario: display tag list field when creating event |
109 | 113 | Given I am on joaosilva's control panel |
110 | 114 | And I follow "Manage Content" |
115 | + And I should see "New content" | |
111 | 116 | And I follow "New content" |
112 | - When I follow "Event" | |
117 | + And I should see "Event" within ".article-types" | |
118 | + When I follow "Event" within ".article-types" | |
113 | 119 | Then I should see "Tag list" |
114 | 120 | |
115 | 121 | Scenario: display tag list field when creating folder |
116 | 122 | Given I am on joaosilva's control panel |
117 | 123 | And I follow "Manage Content" |
118 | 124 | And I follow "New content" |
125 | + And I should see "Folder" | |
119 | 126 | When I follow "Folder" |
120 | 127 | Then I should see "Tag list" |
121 | 128 | |
... | ... | @@ -163,12 +170,15 @@ Feature: edit article |
163 | 170 | Scenario: create an article inside a folder |
164 | 171 | Given I am on joaosilva's control panel |
165 | 172 | When I follow "Manage Content" |
173 | + And I should see "New content" | |
166 | 174 | And I follow "New content" |
175 | + And I should see "Folder" | |
167 | 176 | And I follow "Folder" |
168 | 177 | And I fill in "Title" with "My Folder" |
169 | 178 | And I press "Save" |
170 | 179 | Then I should be on /joaosilva/my-folder |
171 | 180 | When I follow "New article" |
181 | + And I should see "Text article with visual editor" | |
172 | 182 | And I follow "Text article with visual editor" |
173 | 183 | And I fill in "Title" with "My Article" |
174 | 184 | And I press "Save" |
... | ... | @@ -179,12 +189,15 @@ Feature: edit article |
179 | 189 | Scenario: cancel button back to folder after giving up creating |
180 | 190 | Given I am on joaosilva's control panel |
181 | 191 | When I follow "Manage Content" |
192 | + And I should see "New content" | |
182 | 193 | And I follow "New content" |
194 | + And I should see "Folder" | |
183 | 195 | And I follow "Folder" |
184 | 196 | And I fill in "Title" with "My Folder" |
185 | 197 | And I press "Save" |
186 | 198 | Then I should be on /joaosilva/my-folder |
187 | 199 | When I follow "New article" |
200 | + And I should see "Text article with visual editor" | |
188 | 201 | And I follow "Text article with visual editor" |
189 | 202 | And I follow "Cancel" within ".no-boxes" |
190 | 203 | Then I should be on /joaosilva/my-folder |
... | ... | @@ -202,6 +215,7 @@ Feature: edit article |
202 | 215 | Given I am on joaosilva's control panel |
203 | 216 | When I follow "Manage Content" |
204 | 217 | And I follow "New content" |
218 | + And I should see "Text article with visual editor" | |
205 | 219 | And I follow "Text article with visual editor" |
206 | 220 | And I fill in "Title" with "My new article" |
207 | 221 | And I fill in "Text" with "text for the new article" | ... | ... |