lib/spreewald/web_steps.rb in spreewald-0.6.0 vs lib/spreewald/web_steps.rb in spreewald-0.6.1
- old
+ new
@@ -328,12 +328,10 @@
page.response_headers['Content-Disposition'].should =~ /filename="#{filename}"$/
end
# Checks that a certain option is selected for a text field
Then /^"([^"]*)" should be selected for "([^"]*)"$/ do |value, field|
- patiently do
- field_labeled(field).find(:xpath, ".//option[@selected = 'selected'][text() = '#{value}']").should be_present
- end
+ step %(the "#{field}" field should contain "#{value}")
end
Then /^nothing should be selected for "([^"]*)"?$/ do |field|
patiently do
select = find_field(field)