Sha256: ffe580395489e9630ceee638983bd6bafa131624dea814791c6d7939b8d6a55c

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

Given /^I\'m on the buttons screen$/ do
  on(MainMenuScreen) do |screen|
    screen.views
    screen.wait_for_text 'Buttons'
  end
  on(ViewsMenuScreen) do |screen|
    screen.buttons
    screen.wait_for_text 'Normal'
  end
end

Then /^I should be able to click the button by "(.*?)"$/ do |how|
  on(ButtonScreen).send "normal_#{how}"
end

When /^I click the on\/off button$/ do
  on(ButtonScreen).on_off
end

Then /^I should see the text "(.*?)" on the screen$/ do |text|
  on(ButtonScreen).should have_text text
end

When /^I click the on\/off button by "(.*?)"$/ do |how|
  on(ButtonScreen).send "on_off_#{how}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gametel-0.3 features/step_definitions/button_steps.rb
gametel-0.2 features/step_definitions/button_steps.rb