Sha256: c422cfcf5b22a34d14ebe2a930bf3fb0cbc7b76af6d104b31a247a9e7d3c3d85
Contents?: true
Size: 1.72 KB
Versions: 3
Compression:
Stored size: 1.72 KB
Contents
When /^I click the first list item by "(.+)"$/ do |type| on(MainMenuScreen).send "first_list_item_#{type}" end When /^I click the list item "(.*?)" from the main menu$/ do |list_item| on(MainMenuScreen).send "#{list_item.downcase}" end When /^I click the first list item by index on the first list$/ do on(MainMenuScreen).first_list_item_index_list end Given /^I am on the custom list screen$/ do on(MainMenuScreen) do |screen| screen.views screen.wait_for_text 'Buttons' end on(ViewsMenuScreen) do |screen| screen.scroll_down screen.lists screen.wait_for_text "ListAdapter" end on(ListsMenuScreen) do |screen| screen.custom_items screen.wait_for_text 'Tom' end end When /^I ask for the first item in the list$/ do @list_item = on(CustomItemsScreen).tom_view end When(/^I ask for the first item by the first index$/) do @list_item = on(CustomItemsScreen).first_index_view end Then /^I should know that it has the text "(.*?)"$/ do |expected_text| @list_item.text.should include expected_text @list_item.should have_text expected_text end Given /^I am on the efficient adapter screen$/ do on(MainMenuScreen) do |screen| screen.views screen.wait_for_text 'Buttons' end on(ViewsMenuScreen) do |screen| screen.scroll_down screen.lists screen.wait_for_text "ListAdapter" end on(ListsMenuScreen) do |screen| screen.efficient_adapter screen.wait_for_text 'Abertam' end end When /^I ask for the list item for "(.*?)"$/ do |arg1| @list_item = on(EfficientAdapterScreen).abertam_view end Then /^I should know that it has an image$/ do @list_item.should have_image end Then /^I should know that it does not have an image$/ do @list_item.should_not have_image end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gametel-0.8 | features/step_definitions/list_item_steps.rb |
gametel-0.7 | features/step_definitions/list_item_steps.rb |
gametel-0.6 | features/step_definitions/list_item_steps.rb |