spreewald 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/spreewald/web_steps.rb
CHANGED
@@ -330,9 +330,7 @@ end
|
|
330
330
|
|
331
331
|
# Checks that a certain option is selected for a text field
|
332
332
|
Then /^"([^"]*)" should be selected for "([^"]*)"$/ do |value, field|
|
333
|
-
|
334
|
-
field_labeled(field).find(:xpath, ".//option[@selected = 'selected'][text() = '#{value}']").should be_present
|
335
|
-
end
|
333
|
+
step %(the "#{field}" field should contain "#{value}")
|
336
334
|
end
|
337
335
|
|
338
336
|
Then /^nothing should be selected for "([^"]*)"?$/ do |field|
|
@@ -13,5 +13,10 @@ Feature: Web steps
|
|
13
13
|
Then I should see a form with the following values:
|
14
14
|
| Text control | Text control value |
|
15
15
|
| Select control | Label 2 |
|
16
|
-
| Select control without selection | Label 1
|
16
|
+
| Select control without selection | Label 1 |
|
17
17
|
| Textarea control | Textarea control value |
|
18
|
+
|
19
|
+
Scenario: /^"([^"]*)" should be selected for "([^"]*)"$/
|
20
|
+
Then "Label 2" should be selected for "Select control"
|
21
|
+
Then "Label 1" should be selected for "Select control without selection"
|
22
|
+
|
metadata
CHANGED