Sha256: 66b3f3dd1213933851230ec814ca0ed802f5e97244bdcaf10c7a0666a15155be

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

Given /^I\'m on the controls screen$/ do
  on(MainMenuScreen) do |screen|
    screen.views
    screen.wait_for_text 'Controls'
  end
  on(ViewsMenuScreen) do |screen|
    screen.controls
    screen.wait_for_text 'Light Theme'
  end
  on(ControlsMenuScreen).light_theme
  on(ControlsScreen).wait_for_text 'Views/Controls'
end

When /^I enter "(.*?)" into the text field identified by "(.*?)"$/ do |text_value, how|
  on(ControlsScreen).send "text_field_#{how}=", text_value
end

Then /^I should have the value "(.*?)" on the control screen$/ do |text_value|
  on(ControlsScreen).should have_text text_value
end

When /^I clear the text from the text field identified by "(.*?)"$/ do |how|
  on(ControlsScreen).send "clear_text_field_#{how}"
end

Then /^I should not have the value "(.*?)" on the control screen$/ do |text_value|
  on(ControlsScreen).should_not have_text text_value
end

Then /^I should have the value "(.*?)" in the text field identified by "(.*?)"$/ do |text_value, how|
  on(ControlsScreen) do |screen|
    screen.send("text_field_#{how}").should eq(text_value)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gametel-0.5 features/step_definitions/controls_steps.rb
gametel-0.4 features/step_definitions/controls_steps.rb
gametel-0.3 features/step_definitions/controls_steps.rb