Sha256: b2ef9779074136acbf69c16277d3d0f145720c9e09720914b51f0248bf9a8b96

Contents?: true

Size: 1.15 KB

Versions: 47

Compression:

Stored size: 1.15 KB

Contents

When /^I touch (?:the|a) "([^"]*)" button, (?:then I|I) should see (?:the|a) "([^"]*)" view$/ do |button_id, view_id|
  touch_button_and_wait_for_view button_id, view_id
end

Then /^I touch (?:the|a) "([^"]*)" button and wait for (?:the|a) "([^"]*)" view$/ do |button_id, view_id|
  touch_button_and_wait_for_view button_id, view_id
end

Then /^I should see (?:the|a) "([^"]*)" button has title "([^"]*)"$/ do |button_id, title|
  should_see_button_with_title button_id, title
end

# as of 0.9.136 - I should (not)? see a ... button
#  conflicts with calabash predefined steps
#Then /^I should( not)? see (?:the|an?) "([^"]*)" button$/ do |visibility, button_id|
Then /^I should( not)? see (?:the|an) "([^"]*)" button$/ do |visibility, button_id|
  visibility ? should_not_see_button(button_id) : should_see_button(button_id)
end

Then /^I should see (?:the|a) "([^"]*)" button is (disabled|enabled)$/ do |button_id, state|
  res = query("button marked:'#{button_id}'", :isEnabled).first
  str_state = state.eql?('disabled') ? '0' : '1'
  unless res.eql?(str_state)
    screenshot_and_raise "expected to see '#{button_id}' that is '#{state}' but found '#{res}'"
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
briar-2.0.5 features/step_definitions/control/button_steps.rb
briar-2.0.4 features/step_definitions/control/button_steps.rb
briar-2.0.3 features/step_definitions/control/button_steps.rb
briar-2.0.2 features/step_definitions/control/button_steps.rb
briar-2.0.1 features/step_definitions/control/button_steps.rb
briar-2.0.0 features/step_definitions/control/button_steps.rb
briar-1.4.2 features/step_definitions/control/button_steps.rb
briar-1.4.1 features/step_definitions/control/button_steps.rb
briar-1.3.2 features/step_definitions/control/button_steps.rb
briar-1.3.1 features/step_definitions/control/button_steps.rb
briar-1.3.0 features/step_definitions/control/button_steps.rb
briar-1.2.2 features/step_definitions/control/button_steps.rb
briar-1.2.1 features/step_definitions/control/button_steps.rb
briar-1.2.0 features/step_definitions/control/button_steps.rb
briar-1.1.9 features/step_definitions/control/button_steps.rb
briar-1.1.8 features/step_definitions/control/button_steps.rb
briar-1.1.7 features/step_definitions/control/button_steps.rb
briar-1.1.6 features/step_definitions/control/button_steps.rb
briar-1.1.5 features/step_definitions/control/button_steps.rb
briar-1.1.4 features/step_definitions/control/button_steps.rb