Sha256: 6718752273ee11f27bde2767b77c568b4d8e2c5e2e25a0937f70e3d8cf348adf

Contents?: true

Size: 1.6 KB

Versions: 2

Compression:

Stored size: 1.6 KB

Contents

Dir[File.dirname(__FILE__) + "/../../pages/*.rb"].each do |file| 
  require file 
end

Given /^I am on a page that has a radio group with the follow opitions:$/ do |radios|
  @page = StaticPages::Site::Firefox.new
  @page.context StaticPages::Site::InputPage
  @page.visit
  radios.raw.each do |radio|
    @page.radios_contains(radio)
  end
end

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

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

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

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

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

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

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cello-0.0.17 features/step_definitions/radio.rb
cello-0.0.16 features/step_definitions/radio.rb