frank-cucumber 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/frank-cucumber/frank_helper.rb +12 -2
- data/lib/frank-cucumber/version.rb +1 -1
- metadata +3 -3
@@ -93,10 +93,16 @@ module FrankHelper
|
|
93
93
|
JSON.parse( res )['orientation']
|
94
94
|
end
|
95
95
|
|
96
|
+
|
97
|
+
def frankly_is_accessibility_enabled
|
98
|
+
res = get_to_uispec_server( 'accessibility_check' )
|
99
|
+
JSON.parse( res )['accessibility_enabled'] == 'true'
|
100
|
+
end
|
101
|
+
|
96
102
|
def wait_for_frank_to_come_up
|
97
103
|
num_consec_successes = 0
|
98
104
|
num_consec_failures = 0
|
99
|
-
Timeout.timeout(
|
105
|
+
Timeout.timeout(20) do
|
100
106
|
while num_consec_successes <= 6
|
101
107
|
if frankly_ping
|
102
108
|
num_consec_failures = 0
|
@@ -114,8 +120,12 @@ module FrankHelper
|
|
114
120
|
end
|
115
121
|
puts ''
|
116
122
|
end
|
117
|
-
end
|
118
123
|
|
124
|
+
unless frankly_is_accessibility_enabled
|
125
|
+
raise "ACCESSIBILITY DOES NOT APPEAR TO BE ENABLED ON YOUR SIMULATOR. Hit the home button, go to settings, select Accessibility, and turn the inspector on."
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
119
129
|
def frankly_ping
|
120
130
|
get_to_uispec_server('')
|
121
131
|
return true
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 5
|
9
|
+
version: 0.5.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Pete Hodgson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-04 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|