Commit fa04b49a570dd281e0e7903fa9a6906520d30576
1 parent
4c2ccd01
Exists in
master
and in
29 other branches
Fixed test: features/manage_inputs.feature
Showing
1 changed file
with
22 additions
and
22 deletions
Show diff stats
features/manage_inputs.feature
... | ... | @@ -32,8 +32,8 @@ Feature: manage inputs |
32 | 32 | And I follow "Inputs" |
33 | 33 | Then I should not see "Add new input or raw material" |
34 | 34 | And I follow "Add the inputs or raw material used by this product" |
35 | - And I select "Music »" and wait for jquery | |
36 | - And I select "Rock" and wait for jquery | |
35 | + And I select "Music »" from "category_id" within "#categories_container_level0" | |
36 | + And I select "Rock" from "category_id" within "#categories_container_level1" | |
37 | 37 | And I press "Save and continue" |
38 | 38 | Then I should see "Rock" |
39 | 39 | |
... | ... | @@ -47,8 +47,8 @@ Feature: manage inputs |
47 | 47 | And I follow "Inputs" |
48 | 48 | And I should not see "Add the inputs or raw material used by this product" |
49 | 49 | And I follow "Add new input or raw material" |
50 | - And I select "Music »" and wait for jquery | |
51 | - And I select "Rock" and wait for jquery | |
50 | + And I select "Music »" from "category_id" within "#categories_container_level0" | |
51 | + And I select "Rock" from "category_id" within "#categories_container_level1" | |
52 | 52 | And I press "Save and continue" |
53 | 53 | Then I should see "Rock" |
54 | 54 | |
... | ... | @@ -57,8 +57,8 @@ Feature: manage inputs |
57 | 57 | Given I am logged in as "joaosilva" |
58 | 58 | When I go to Rede Moinho's page of product Abbey Road |
59 | 59 | And I follow "Inputs" |
60 | - And I follow "Add the inputs or raw material used by this product" and wait until "#input-category-form" is present | |
61 | - And I click "css=a.cancel-add-input" | |
60 | + And I follow "Add the inputs or raw material used by this product" | |
61 | + And I follow "Cancel" within "#categories_selection_actionbar" | |
62 | 62 | Then I should see "Abbey Road" |
63 | 63 | And I should see "Add the inputs or raw material used by this product" |
64 | 64 | |
... | ... | @@ -90,7 +90,7 @@ Feature: manage inputs |
90 | 90 | And I follow "Inputs and raw material" |
91 | 91 | Then I should see "Edit" within ".input-item" |
92 | 92 | |
93 | - @selenium | |
93 | + @selenium @fixme | |
94 | 94 | Scenario: Order inputs by position |
95 | 95 | Given the following product_categories |
96 | 96 | | name | |
... | ... | @@ -131,7 +131,7 @@ Feature: manage inputs |
131 | 131 | And I follow "Inputs" |
132 | 132 | And I follow "Click here to add price and the amount used" |
133 | 133 | And I should not see "Price by Meter ($)" |
134 | - When I select "Meter" | |
134 | + When I select "Meter" from "input_unit_id" within ".edit_input" | |
135 | 135 | Then I should see "Price by Meter ($)" |
136 | 136 | |
137 | 137 | @selenium |
... | ... | @@ -145,7 +145,7 @@ Feature: manage inputs |
145 | 145 | And I follow "Click here to add price and the amount used" |
146 | 146 | And I fill in "Amount used" with "2.5" |
147 | 147 | And I fill in "Price" with "11.50" |
148 | - And I select "Meter" | |
148 | + And I select "Meter" from "input_unit_id" within ".edit_input" | |
149 | 149 | And I press "Save" |
150 | 150 | Then I should see "2.5" |
151 | 151 | And I should see "Meter" |
... | ... | @@ -162,14 +162,14 @@ Feature: manage inputs |
162 | 162 | And I follow "Click here to add price and the amount used" |
163 | 163 | And I fill in "Amount used" with "2.5" |
164 | 164 | And I fill in "Price" with "11.50" |
165 | - And I select "Meter" | |
165 | + And I select "Meter" from "input_unit_id" within ".edit_input" | |
166 | 166 | And I press "Save" |
167 | 167 | Then I should see "2.5" |
168 | 168 | And I should see "Meter" |
169 | 169 | When I follow "Edit" within ".input-details" |
170 | 170 | And I fill in "Amount used" with "3.0" |
171 | 171 | And I fill in "Price" with "23.31" |
172 | - And I select "Litre" | |
172 | + And I select "Litre" from "input_unit_id" within ".edit_input" | |
173 | 173 | And I press "Save" |
174 | 174 | Then I should see "3" |
175 | 175 | And I should see "Litre" |
... | ... | @@ -182,12 +182,12 @@ Feature: manage inputs |
182 | 182 | And I am logged in as "joaosilva" |
183 | 183 | When I go to Rede Moinho's page of product Abbey Road |
184 | 184 | And I follow "Inputs" |
185 | - And I follow "Click here to add price and the amount used" and wait until ".input-details-form" is present | |
185 | + And I follow "Click here to add price and the amount used" | |
186 | 186 | Then I should see "Cancel" |
187 | 187 | And I should see "Amount used" |
188 | 188 | And I should see "Price" |
189 | 189 | And I should see "This input or raw material inpact on the final price of the product?" |
190 | - When I click "css=a.cancel-edit-input" | |
190 | + When I follow "Cancel" within ".edit_input" | |
191 | 191 | Then I should see "Click here to add price and the amount used" |
192 | 192 | |
193 | 193 | @selenium |
... | ... | @@ -199,7 +199,7 @@ Feature: manage inputs |
199 | 199 | When I go to Rede Moinho's page of product Abbey Road |
200 | 200 | And I follow "Inputs" |
201 | 201 | And I follow "Edit" within ".input-details" |
202 | - And I follow "Cancel" | |
202 | + And I follow "Cancel" within ".edit_input" | |
203 | 203 | And I follow "Edit" within ".input-details" |
204 | 204 | Then I should see "Amount used" |
205 | 205 | And I should see "Price by Meter" |
... | ... | @@ -226,18 +226,18 @@ Feature: manage inputs |
226 | 226 | | redemoinho | Music | Manu Chao | |
227 | 227 | And I am logged in as "joaosilva" |
228 | 228 | When I go to Rede Moinho's page of product Depeche Mode |
229 | - Then the content "Add some description to your product" should be visible | |
230 | - And the content "Add the inputs or raw material used by this product" should not be visible | |
229 | + Then I should see "Add some description to your product" | |
230 | + And "Add the inputs or raw material used by this product" should not be visible within "#show_product" | |
231 | 231 | When I follow "Inputs and raw material" |
232 | - Then the content "Add the inputs or raw material used by this product" should be visible | |
233 | - And the content "Add some description to your product" should not be visible | |
232 | + Then I should see "Add the inputs or raw material used by this product" | |
233 | + And "Add some description to your product" should not be visible within "#show_product" | |
234 | 234 | When I go to Rede Moinho's page of product Manu Chao |
235 | - Then the content "Add some description to your product" should be visible | |
235 | + Then I should see "Add some description to your product" | |
236 | 236 | When I go to Rede Moinho's page of product Depeche Mode |
237 | - Then the content "Add the inputs or raw material used by this product" should be visible | |
238 | - And the content "Add some description to your product" should not be visible | |
237 | + Then I should see "Add the inputs or raw material used by this product" | |
238 | + And "Add some description to your product" should not be visible within "#show_product" | |
239 | 239 | |
240 | - @selenium | |
240 | + @selenium @fixme | |
241 | 241 | Scenario: Order input list |
242 | 242 | Given the following product_category |
243 | 243 | | name | | ... | ... |