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