This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/features]: moody$ tree | |
. | |
├── android | |
│ ├── helpers | |
│ │ └── utils_android.rb | |
│ ├── pages | |
│ │ ├── main_page_android.rb | |
│ │ ├── posts_page_android.rb | |
│ │ ├── welcome_page_android.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def transition_to_conversation_page(opts={}) | |
default_opts = {:auth_method => :backdoor, | |
:user => TestUser.new} | |
opts = default_opts.merge(opts) | |
unless opts[:auth_method] == :backdoor | |
pending 'ATM the only way to authenticate is via the backdoor' | |
end | |
user = authenticate_as_test_user opts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this might be too deep a module | |
# 3 is usually the max depth, but in x-platform | |
# i like to mirror the directory structure | |
# you can do what ever you like | |
module YourProjectName | |
module iOS | |
module Helpers | |
module Utils | |
def global_error_messages_view_selector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
date = Time.now.strftime('%Y-%m-%d-%H%M-%S') | |
default_report = "./reports/calabash-#{date}.html" | |
# get device information | |
xamarin_dir = "#{ENV['HOME']}/.xamarin" | |
# iphone 4S iOS 6 | |
neptune_dir = "#{xamarin_dir}/devices/neptune" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tag your Scenario or you feature | |
# @authenticated | |
# Scenario: buy a bunch of stuff on ebay with mom's credit card | |
# Then I instant buy the "Star Wars Action Figure Deluxe Set" | |
# | |
# @authenticated | |
# Feature: favorite cat videos | |
# this will not work, because calabash does not have control of your app | |
# so do _not_ do this! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[stern:~/.xamarin]: moody$ tree | |
. | |
├── devices | |
│ ├── android_phone -> r2d2 | |
│ ├── android_tablet -> marvin | |
│ ├── earp | |
│ │ ├── ip | |
│ │ └── udid | |
│ ├── ipad -> venus | |
│ ├── iphone -> neptune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the idea here to rely on .calabash-gem and .briar-gem files | |
# that are not under version control to set the path and branch. | |
# | |
# we want bundler to force local branch checks so calabash and briar | |
# maintainers are allows aware of what branch they are working from. | |
# | |
# non-maintainers can simply use the Gemfile as-is. | |
# | |
# maintainers should configure bundler to check that they are working against | |
# the correct branch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before do |scenario| | |
@calabash_launcher = Calabash::Cucumber::Launcher.new | |
unless @calabash_launcher.calabash_no_launch? | |
@calabash_launcher.relaunch | |
@calabash_launcher.calabash_notify(self) | |
if ios7? | |
ensure_ipad_emulation_1x | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def uia_handle_target_command(cmd, *query_args) | |
args = query_args.map do |part| | |
if part.is_a?(String) | |
"#{escape_uia_string(part)}" | |
else | |
"#{escape_uia_string(part.to_edn)}" | |
end | |
end | |
command = %Q[target.#{cmd}(#{args.join(', ')})] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a raw list created by: | |
# $ find . -name *.rb -type f -exec grep ENV {} \; -print > ~/tmp/calabash-vars.txt | |
# and then hand extracting | |
# * probably some duplicates | |
# * some of these are deprecated | |
# * some should be deprecated | |
# * some should never be set outside of gem/server development | |
CALABASH_IRBRC | |
IRBRC |