calabash-cucumber 0.9.150 → 0.9.151

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9cb615b16697711669a84fa18b9c89d5258c996
4
- data.tar.gz: 53769b75773781a43f3135d45aad222b5cc662ad
3
+ metadata.gz: 65d842e54bba4c90f96d1e6e45af63c9d18c6c5e
4
+ data.tar.gz: 2ef76a18f37855579f0f1d1211abeca56364a57c
5
5
  SHA512:
6
- metadata.gz: 73c212c4f54a5c85594a8410d17363e65ba1c08cd3949e0a4974dbf27d15a2bd801a5c0bc623ede3bbb18db49268a40c726116332530c2edaca91cba5534fe6d
7
- data.tar.gz: c975e2107c7fcc76cd5bdc45af86621287907050b2e5b5f48c36fd353f9f9416318e9a4a6e02662938e726927be38d4f2d28c89f397e0bbfae4040643523d46e
6
+ metadata.gz: 065dd85fb3a090d48713c6a7a76bc41d4cbc45aba2b9f48836a420bdbbc063a96fa69143f5752bafadac27a450924828a359284dddb3cd8eeec503474f1e79b4
7
+ data.tar.gz: 90f4e515b68e12748210c7b4d66967a715edc021652ead2df6201a4091917e3fbadade7ddd627cc244a44cdd0f17fb4f67f5a57ceb344bc45959285e76153746
@@ -63,8 +63,14 @@ Then /^I (?:press|touch) list item number (\d+)$/ do |index|
63
63
  end
64
64
 
65
65
  Then /^I (?:press|touch) list item "([^\"]*)"$/ do |cell_name|
66
- touch("tableViewCell marked:'#{cell_name}'")
67
- sleep(STEP_PAUSE)
66
+ if
67
+ query("tableViewCell marked:'#{cell_name}'").empty?
68
+ then
69
+ touch("tableViewCell text:'#{cell_name}'")
70
+ else
71
+ touch("tableViewCell marked:'#{cell_name}'")
72
+ end
73
+ sleep(STEP_PAUSE)
68
74
  end
69
75
 
70
76
  Then /^I toggle the switch$/ do
@@ -399,7 +399,7 @@ EOF
399
399
  end
400
400
 
401
401
  if data.nil? and device=='ipad'
402
- if ENV['FULL_CONSOLE_OUTPUT'] == '1'
402
+ if ENV['CALABASH_FULL_CONSOLE_OUTPUT'] == '1'
403
403
  puts "Unable to find recording for #{os} and #{device}. Trying with #{os} iphone"
404
404
  end
405
405
  recording = recording_name_for(recording_name, os, 'iphone')
@@ -19,8 +19,8 @@ module Calabash
19
19
 
20
20
  DEFAULT_SIM_RETRY = 2
21
21
 
22
- # Load environment variable for showing full console output
23
- # If not env var set then we use true; i.e. output to console in full
22
+ # Load environment variable for showing full console output.
23
+ # If not env var set then we use false, i.e. output to console is limited.
24
24
  FULL_CONSOLE_OUTPUT = ENV['CALABASH_FULL_CONSOLE_OUTPUT'] == '1' ? true : false
25
25
 
26
26
  def self.relaunch(path, sdk = nil, version = 'iphone', args = nil)
@@ -155,13 +155,15 @@ module Calabash
155
155
  msg << "This should point to the location of your built app linked with calabash.\n"
156
156
  raise msg.join("\n")
157
157
  end
158
- puts("-"*37)
159
- puts "Auto detected APP_BUNDLE_PATH:\n\n"
158
+ if FULL_CONSOLE_OUTPUT
159
+ puts("-"*37)
160
+ puts "Auto detected APP_BUNDLE_PATH:\n\n"
160
161
 
161
- puts "APP_BUNDLE_PATH=#{preferred_dir || sim_dirs[0]}\n\n"
162
- puts "Please verify!"
163
- puts "If this is wrong please set it as APP_BUNDLE_PATH in features/support/01_launch.rb\n"
164
- puts("-"*37)
162
+ puts "APP_BUNDLE_PATH=#{preferred_dir || sim_dirs[0]}\n\n"
163
+ puts "Please verify!"
164
+ puts "If this is wrong please set it as APP_BUNDLE_PATH in features/support/01_launch.rb\n"
165
+ puts("-"*37)
166
+ end
165
167
  bundle_path = sim_dirs[0]
166
168
  end
167
169
  bundle_path
@@ -102,7 +102,9 @@ class Calabash::Cucumber::Launcher
102
102
  timeout = (ENV['CONNECT_TIMEOUT'] || 30).to_i
103
103
  retry_count = 0
104
104
  connected = false
105
- puts "Waiting for App to be ready"
105
+ if ENV['CALABASH_FULL_CONSOLE_OUTPUT'] == '1'
106
+ puts "Waiting for App to be ready"
107
+ end
106
108
  until connected do
107
109
  raise "MAX_RETRIES" if retry_count == max_retry_count
108
110
  retry_count += 1
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.150'
4
- FRAMEWORK_VERSION = '0.9.150'
3
+ VERSION = '0.9.151'
4
+ FRAMEWORK_VERSION = '0.9.151'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.150
4
+ version: 0.9.151
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2013-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber