Commit ebe4dfbc101afe8c80a4a23422ecd041ccd82ca9
1 parent
8e8f1e4d
Exists in
web_steps_improvements
and in
6 other branches
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 "([^"]*)" field(?: within "([^"]*)")? should not contain "([^"]*)"$/ |
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 "([^"]*)" checkbox(?: within "([^"]*)")? 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 | ... | ... |
-
mentioned in commit 0b04b3c46660afbdc3a477313f8761ed01db8966