Commit ebe4dfbc101afe8c80a4a23422ecd041ccd82ca9

Authored by Tallys Martins
1 parent 8e8f1e4d

Very subtle improvement on checked web_steps

Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
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 &quot;([^&quot;]*)&quot; field(?: within &quot;([^&quot;]*)&quot;)? should not contain &quot;([^&quot;]*)&quot;$/
204 204 end
205 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 208 with_scope(selector) do
209 209 field_checked = find_field(label)['checked']
210 210 if field_checked.respond_to? :should
... ... @@ -215,7 +215,7 @@ Then /^the &quot;([^&quot;]*)&quot; checkbox(?: within &quot;([^&quot;]*)&quot;)? should be checked$/ do |labe
215 215 end
216 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 219 with_scope(selector) do
220 220 field_checked = find_field(label)['checked']
221 221 if field_checked.respond_to? :should
... ...