Sha256: 64d3ac9cbeab396be1fe11c48cd84ef6a864f9845422a788073f4b7dad3a5718

Contents?: true

Size: 1.52 KB

Versions: 11

Compression:

Stored size: 1.52 KB

Contents

require "cello"

Given /^I am on a page that has a radio group with the follow opitions:$/ do |radios|
  step  "I am in the inputs context"
  radios.raw.each do |radio|
    @browser.radios_contains(radio)
  end
end

Given /^the option "(.*?)" is setted$/ do |option|
  @browser.radios_set(option)
  @browser.radios_checked_option_is?(option).should be true
end

Then /^I should be able to know that the option "(.*?)" is setted$/ do |option|
  @browser.radios_checked_option?.should include(option)
end

Then /^I should be able to know if the option "(.*?)" is not setted$/ do |option|
  @browser.radios_checked_option_is_not?(option).should be true
  @browser.close
end

Then /^I should fail when ask if the the option "(.*?)" is not setted$/ do |option|
  @browser.radios_checked_option_is_not?(option).should be false
  @browser.close
end

Then /^I should be able to know if the option "(.*?)" is setted$/ do |option|
  @browser.radios_checked_option_is?(option).should be true
  @browser.close
end

Then /^I should fail when ask if the option "(.*?)" is setted$/ do |option|
  @browser.radios_checked_option_is?(option).should be false
  @browser.close
end

Then /^I should be able to know if there is some options setted$/ do
  @browser.radios_has_selected_option?.should be true
  @browser.close
end

Then /^I should fail when ask if there is some options setted$/ do
  @browser.radios_has_selected_option?.should be false
  @browser.close
end

Then /^I should be able to select the option "(.*?)"$/ do |option|
  @browser.radios_set(option)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cello-0.0.35 features/step_definitions/radio.rb
cello-0.0.34 features/step_definitions/radio.rb
cello-0.0.33 features/step_definitions/radio.rb
cello-0.0.32 features/step_definitions/radio.rb
cello-0.0.31 features/step_definitions/radio.rb
cello-0.0.30 features/step_definitions/radio.rb
cello-0.0.29 features/step_definitions/radio.rb
cello-0.0.28 features/step_definitions/radio.rb
cello-0.0.27 features/step_definitions/radio.rb
cello-0.0.26 features/step_definitions/radio.rb
cello-0.0.25 features/step_definitions/radio.rb