calabash-cucumber 0.9.144 → 0.9.145.pre1
Sign up to get free protection for your applications and to get access to all the features.
data/bin/calabash-ios-build.rb
CHANGED
@@ -48,8 +48,8 @@ def console
|
|
48
48
|
path = ENV['CALABASH_IRBRC']
|
49
49
|
unless path
|
50
50
|
path = File.expand_path(File.join(@script_dir,".irbrc"))
|
51
|
-
ENV['IRBRC'] = path
|
52
51
|
end
|
52
|
+
ENV['IRBRC'] = path
|
53
53
|
puts "Running irb..."
|
54
54
|
exec("irb")
|
55
55
|
end
|
@@ -93,4 +93,4 @@ def run(options={:build_dir=>"Calabash",
|
|
93
93
|
end
|
94
94
|
system(cmd)
|
95
95
|
puts "Done..."
|
96
|
-
end
|
96
|
+
end
|
@@ -171,7 +171,7 @@ Then /^I wait to see a navigation bar titled "([^\"]*)"$/ do |expected_mark|
|
|
171
171
|
end
|
172
172
|
|
173
173
|
Then /^I wait for the "([^\"]*)" (?:input|text) field$/ do |placeholder|
|
174
|
-
wait_for(WAIT_TIMEOUT) { element_exists( "textField placeholder:'#{placeholder}'") }
|
174
|
+
wait_for(WAIT_TIMEOUT) { element_exists( "textField placeholder:'#{placeholder}'") || element_exists( "textField marked:'#{placeholder}'") }
|
175
175
|
end
|
176
176
|
|
177
177
|
Then /^I wait for (\d+) (?:input|text) field(?:s)?$/ do |count|
|
@@ -381,7 +381,7 @@ Then /^I see (\d+) (?:input|text) field(?:s)?$/ do |count|
|
|
381
381
|
end
|
382
382
|
|
383
383
|
Then /^I should see a "([^\"]*)" (?:input|text) field$/ do |expected_mark|
|
384
|
-
res = element_exists("textField placeholder:'#{expected_mark}'")
|
384
|
+
res = element_exists("textField placeholder:'#{expected_mark}'") ||
|
385
385
|
element_exists("textField marked:'#{expected_mark}'")
|
386
386
|
unless res
|
387
387
|
screenshot_and_raise "Expected textfield with placeholder or accessibilityLabel: #{expected_mark}"
|
@@ -356,9 +356,17 @@ EOF
|
|
356
356
|
|
357
357
|
if data.nil? and os=="ios6"
|
358
358
|
recording = recording_name_for(recording_name, "ios5", device)
|
359
|
+
data = load_recording(recording, rec_dir)
|
360
|
+
end
|
361
|
+
|
362
|
+
if data.nil? and device=='ipad'
|
363
|
+
if ENV['FULL_CONSOLE_OUTPUT'] == '1'
|
364
|
+
puts "Unable to find recording for #{os} and #{device}. Trying with #{os} iphone"
|
365
|
+
end
|
366
|
+
recording = recording_name_for(recording_name, os, 'iphone')
|
367
|
+
data = load_recording(recording, rec_dir)
|
359
368
|
end
|
360
369
|
|
361
|
-
data = load_recording(recording, rec_dir)
|
362
370
|
|
363
371
|
if data.nil?
|
364
372
|
screenshot_and_raise "Playback not found: #{recording} (searched for #{recording} in #{Dir.pwd}, #{rec_dir}, #{DATA_PATH}/resources"
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.145.pre1
|
5
|
+
prerelease: 8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Karl Krukow
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
@@ -318,9 +318,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
318
318
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
319
319
|
none: false
|
320
320
|
requirements:
|
321
|
-
- - ! '
|
321
|
+
- - ! '>'
|
322
322
|
- !ruby/object:Gem::Version
|
323
|
-
version:
|
323
|
+
version: 1.3.1
|
324
324
|
requirements: []
|
325
325
|
rubyforge_project:
|
326
326
|
rubygems_version: 1.8.23
|