Sha256: 6058c5ea57cb9c5c732b5b0a4b216edab86fa5740ddae3680bd5b40bd81a98e7

Contents?: true

Size: 815 Bytes

Versions: 2

Compression:

Stored size: 815 Bytes

Contents

#include Briar::Bars

Then /^I should see tabbar button "([^"]*)" at index (\d+)$/ do |name, index|
  unless tabbar_item_is_at_index(name, index)
    screenshot_and_raise "tabbar button with name #{name} does not exist at index " +
                               index.to_s
  end
end

Given /^that the tabbar is visible$/ do
  should_see_tabbar
end


Then /^I should not see the tabbar$/ do
  screenshot_and_raise "should not be able to see tabbar" if tabbar_visible?
end

Then /I touch (?:the) "([^"]*)" tab$/ do |name|
  touch_tabbar_item name
end

Then /^the tabbar is visible$/ do
  macro 'that the tabbar is visible'
end

When /^I touch the "([^"]*)" tab I should see the "([^"]*)" view$/ do |tab_label, view_id|
  should_see_tabbar
  touch_tabbar_item tab_label
  should_see_view_after_animation view_id
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
briar-0.0.5 features/step_definitions/bars/tabbar_steps.rb
briar-0.0.4 features/step_definitions/bars/tabbar_steps.rb