Sha256: b2758c6e20d6535c1caebddffa05208919d15c13c41592854d6313d0803355ab
Contents?: true
Size: 1.28 KB
Versions: 16
Compression:
Stored size: 1.28 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 Then /^the "(.*?)" field\'s "(.*?)" property is "(.*?)"$/ do |which, what, result| on(ControlsScreen) do |screen| view = screen.send("#{which}_field_id_view") view.send("#{what}?").to_s.should == result end end
Version data entries
16 entries across 16 versions & 1 rubygems