Commit 25998f5a0da07cf4eedf6db19286e0eb4cdd09e6

Authored by Marcos Pereira
2 parents 6e8cbd35 ebe4dfbc

Merge branch 'web_steps_improvements' into 'master'

Very subtle improvement on checked web_steps

BILD https://travis-ci.org/tallysmartins/noosfero/builds/124014151

@marcosronaldo @diguliu 

See merge request !862
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
features/step_definitions/web_steps.rb
@@ -204,7 +204,7 @@ Then /^the "([^"]*)" field(?: within "([^"]*)")? should not contain "([^"]*)"$/ @@ -204,7 +204,7 @@ Then /^the "([^"]*)" field(?: within "([^"]*)")? should not contain "([^"]*)"$/
204 end 204 end
205 end 205 end
206 206
207 -Then /^the "([^"]*)" checkbox(?: within "([^"]*)")? should be checked$/ do |label, selector| 207 +Then /^the "([^"]*)" (?:checkbox|radio button)(?: within "([^"]*)")? should be checked$/ do |label, selector|
208 with_scope(selector) do 208 with_scope(selector) do
209 field_checked = find_field(label)['checked'] 209 field_checked = find_field(label)['checked']
210 if field_checked.respond_to? :should 210 if field_checked.respond_to? :should
@@ -215,7 +215,7 @@ Then /^the "([^"]*)" checkbox(?: within "([^"]*)")? should be checked$/ do |labe @@ -215,7 +215,7 @@ Then /^the "([^"]*)" checkbox(?: within "([^"]*)")? should be checked$/ do |labe
215 end 215 end
216 end 216 end
217 217
218 -Then /^the "([^"]*)" checkbox(?: within "([^"]*)")? should not be checked$/ do |label, selector| 218 +Then /^the "([^"]*)" (?:checkbox|radio button)(?: within "([^"]*)")? should not be checked$/ do |label, selector|
219 with_scope(selector) do 219 with_scope(selector) do
220 field_checked = find_field(label)['checked'] 220 field_checked = find_field(label)['checked']
221 if field_checked.respond_to? :should 221 if field_checked.respond_to? :should