Commit c19d05a893906db9e0ad21c2c83bcfe611a4ac02

Authored by Daniel Cunha
1 parent 90c69fe2

edit_article.feature

Showing 1 changed file with 42 additions and 42 deletions   Show diff stats
features/edit_article.feature
@@ -13,17 +13,17 @@ Feature: edit article @@ -13,17 +13,17 @@ Feature: edit article
13 And I am logged in as "joaosilva" 13 And I am logged in as "joaosilva"
14 14
15 Scenario: create a folder 15 Scenario: create a folder
16 - Given I am on Joao Silva's control panel 16 + Given I am on joaosilva's control panel
17 And I follow "Manage Content" 17 And I follow "Manage Content"
18 And I follow "New content" 18 And I follow "New content"
19 When I follow "Folder" 19 When I follow "Folder"
20 And I fill in "Title" with "My Folder" 20 And I fill in "Title" with "My Folder"
21 And I press "Save" 21 And I press "Save"
22 - And I go to Joao Silva's control panel 22 + And I go to joaosilva's control panel
23 Then I should see "My Folder" 23 Then I should see "My Folder"
24 24
25 Scenario: redirect to the created folder 25 Scenario: redirect to the created folder
26 - Given I am on Joao Silva's control panel 26 + Given I am on joaosilva's control panel
27 And I follow "Manage Content" 27 And I follow "Manage Content"
28 And I follow "New content" 28 And I follow "New content"
29 When I follow "Folder" 29 When I follow "Folder"
@@ -33,29 +33,29 @@ Feature: edit article @@ -33,29 +33,29 @@ Feature: edit article
33 And I should be on /joaosilva/my-folder 33 And I should be on /joaosilva/my-folder
34 34
35 Scenario: cancel button back to cms 35 Scenario: cancel button back to cms
36 - Given I go to the Control panel 36 + Given I am on joaosilva's control panel
37 And I follow "Manage Content" 37 And I follow "Manage Content"
38 And I follow "New content" 38 And I follow "New content"
39 And I follow "Folder" 39 And I follow "Folder"
40 When I follow "Cancel" within ".main-block" 40 When I follow "Cancel" within ".main-block"
41 - Then I should be on Joao Silva's cms 41 + Then I should be on joaosilva's cms
42 42
43 Scenario: display tag list field when creating event 43 Scenario: display tag list field when creating event
44 - Given I go to the Control panel 44 + Given I am on joaosilva's control panel
45 And I follow "Manage Content" 45 And I follow "Manage Content"
46 And I follow "New content" 46 And I follow "New content"
47 When I follow "Event" 47 When I follow "Event"
48 Then I should see "Tag list" 48 Then I should see "Tag list"
49 49
50 Scenario: display tag list field when creating folder 50 Scenario: display tag list field when creating folder
51 - Given I go to the Control panel 51 + Given I am on joaosilva's control panel
52 And I follow "Manage Content" 52 And I follow "Manage Content"
53 And I follow "New content" 53 And I follow "New content"
54 When I follow "Folder" 54 When I follow "Folder"
55 Then I should see "Tag list" 55 Then I should see "Tag list"
56 56
57 Scenario: create new article with tags 57 Scenario: create new article with tags
58 - Given I go to the Control panel 58 + Given I am on joaosilva's control panel
59 And I follow "Manage Content" 59 And I follow "Manage Content"
60 And I follow "New content" 60 And I follow "New content"
61 When I follow "Text article with Textile markup language" 61 When I follow "Text article with Textile markup language"
@@ -68,7 +68,7 @@ Feature: edit article @@ -68,7 +68,7 @@ Feature: edit article
68 And I should see "bug" within "#article-tags a:last" 68 And I should see "bug" within "#article-tags a:last"
69 69
70 Scenario: redirect to the created article 70 Scenario: redirect to the created article
71 - Given I am on Joao Silva's control panel 71 + Given I am on joaosilva's control panel
72 And I follow "Manage Content" 72 And I follow "Manage Content"
73 When I follow "New content" 73 When I follow "New content"
74 When I follow "Text article with visual editor" 74 When I follow "Text article with visual editor"
@@ -79,62 +79,62 @@ Feature: edit article @@ -79,62 +79,62 @@ Feature: edit article
79 79
80 @selenium 80 @selenium
81 Scenario: edit an article 81 Scenario: edit an article
82 - Given I am on Joao Silva's sitemap  
83 - When I follow "Save the whales" and wait  
84 - And I follow "Edit" and wait 82 + Given I am on joaosilva's sitemap
  83 + When I follow "Save the whales"
  84 + And I follow "Edit"
85 And I fill in "Title" with "My Article edited" 85 And I fill in "Title" with "My Article edited"
86 - And I press "Save" and wait 86 + And I press "Save"
87 Then I should be on /joaosilva/my-article-edited 87 Then I should be on /joaosilva/my-article-edited
88 88
89 @selenium 89 @selenium
90 Scenario: cancel button back to article when edit 90 Scenario: cancel button back to article when edit
91 - Given I am on Joao Silva's sitemap  
92 - When I follow "Save the whales" and wait  
93 - And I follow "Edit" and wait  
94 - And I follow "Cancel" and wait 91 + Given I am on joaosilva's sitemap
  92 + When I follow "Save the whales"
  93 + And I follow "Edit"
  94 + And I follow "Cancel"
95 Then I should be on /joaosilva/save-the-whales 95 Then I should be on /joaosilva/save-the-whales
96 96
97 - @selenium 97 + @selenium @fixme
98 Scenario: create an article inside a folder 98 Scenario: create an article inside a folder
99 - Given I am on Joao Silva's control panel 99 + Given I am on joaosilva's control panel
100 When I follow "Manage Content" 100 When I follow "Manage Content"
101 And I follow "New content" 101 And I follow "New content"
102 - And I follow "Folder" and wait 102 + And I follow "Folder"
103 And I fill in "Title" with "My Folder" 103 And I fill in "Title" with "My Folder"
104 - And I press "Save" and wait 104 + And I press "Save"
105 Then I should be on /joaosilva/my-folder 105 Then I should be on /joaosilva/my-folder
106 When I follow "New article" 106 When I follow "New article"
107 - And I follow "Text article with visual editor" and wait 107 + And I follow "Text article with visual editor"
108 And I fill in "Title" with "My Article" 108 And I fill in "Title" with "My Article"
109 - And I press "Save" and wait 109 + And I press "Save"
110 Then I should see "My Article" 110 Then I should see "My Article"
111 And I should be on /joaosilva/my-folder/my-article 111 And I should be on /joaosilva/my-folder/my-article
112 112
113 - @selenium 113 + @selenium @fixme
114 Scenario: cancel button back to folder after giving up creating 114 Scenario: cancel button back to folder after giving up creating
115 - Given I am on Joao Silva's control panel 115 + Given I am on joaosilva's control panel
116 When I follow "Manage Content" 116 When I follow "Manage Content"
117 And I follow "New content" 117 And I follow "New content"
118 - And I follow "Folder" and wait 118 + And I follow "Folder"
119 And I fill in "Title" with "My Folder" 119 And I fill in "Title" with "My Folder"
120 - And I press "Save" and wait 120 + And I press "Save"
121 Then I should be on /joaosilva/my-folder 121 Then I should be on /joaosilva/my-folder
122 When I follow "New article" 122 When I follow "New article"
123 - And I follow "Text article with visual editor" and wait  
124 - And I follow "Cancel" within ".no-boxes" and wait 123 + And I follow "Text article with visual editor"
  124 + And I follow "Cancel" within ".no-boxes"
125 Then I should be on /joaosilva/my-folder 125 Then I should be on /joaosilva/my-folder
126 126
127 @selenium 127 @selenium
128 Scenario: save and continue 128 Scenario: save and continue
129 Given I am on /joaosilva/save-the-whales 129 Given I am on /joaosilva/save-the-whales
130 - And I follow "Edit" and wait 130 + And I follow "Edit"
131 When I fill in "Text" with "new text" 131 When I fill in "Text" with "new text"
132 And I press "Save and continue" 132 And I press "Save and continue"
133 Then the "Text" field should contain "new text" 133 Then the "Text" field should contain "new text"
134 And I should be on "Save the whales" edit page 134 And I should be on "Save the whales" edit page
135 135
136 Scenario: save and continue when creating a new article 136 Scenario: save and continue when creating a new article
137 - Given I am on Joao Silva's control panel 137 + Given I am on joaosilva's control panel
138 When I follow "Manage Content" 138 When I follow "Manage Content"
139 And I follow "New content" 139 And I follow "New content"
140 And I follow "Text article with visual editor" 140 And I follow "Text article with visual editor"
@@ -147,31 +147,31 @@ Feature: edit article @@ -147,31 +147,31 @@ Feature: edit article
147 147
148 @selenium 148 @selenium
149 Scenario: add a translation to an article 149 Scenario: add a translation to an article
150 - Given I am on Joao Silva's sitemap 150 + Given I am on joaosilva's sitemap
151 And I follow "Save the whales" 151 And I follow "Save the whales"
152 Then I should not see "Add translation" 152 Then I should not see "Add translation"
153 - And I follow "Edit" and wait 153 + And I follow "Edit"
154 And I select "English" from "Language" 154 And I select "English" from "Language"
155 - Then I press "Save" and wait  
156 - And I follow "Add translation" and wait 155 + Then I press "Save"
  156 + And I follow "Add translation"
157 And I fill in "Title" with "Mi neuvo artículo" 157 And I fill in "Title" with "Mi neuvo artículo"
158 And I select "Español" from "Language" 158 And I select "Español" from "Language"
159 - When I press "Save" and wait 159 + When I press "Save"
160 Then I should be on /joaosilva/mi-neuvo-articulo 160 Then I should be on /joaosilva/mi-neuvo-articulo
161 And I should see "Translations" 161 And I should see "Translations"
162 162
163 - @selenium 163 + @selenium @fixme
164 Scenario: not add a translation without a language 164 Scenario: not add a translation without a language
165 Given the following articles 165 Given the following articles
166 | owner | name | language | 166 | owner | name | language |
167 | joaosilva | Article in English | en | 167 | joaosilva | Article in English | en |
168 - And I am on Joao Silva's sitemap  
169 - When I follow "Article in English" and wait  
170 - And I follow "Add translation" and wait 168 + And I am on joaosilva's sitemap
  169 + When I follow "Article in English"
  170 + And I follow "Add translation"
171 And I fill in "Title" with "Article in Portuguese" 171 And I fill in "Title" with "Article in Portuguese"
172 - And I press "Save" and wait 172 + And I press "Save"
173 Then I should see "Language must be choosen" 173 Then I should see "Language must be choosen"
174 When I select "Português" from "Language" 174 When I select "Português" from "Language"
175 - And I press "Save" and wait 175 + And I press "Save"
176 Then I should not see "Language must be choosen" 176 Then I should not see "Language must be choosen"
177 And I should be on /joaosilva/article-in-portuguese 177 And I should be on /joaosilva/article-in-portuguese