briar 0.0.9 → 0.1.0
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmNiZGVhYTAwYTllYWE2NGU1Njg2MmY2NThhN2MyOGE2MTRlMjk0Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2U0ZWJkNDBmZjljNzJiZTM3ZmY3ZWVjZTViNGY0NDdhY2VmMmI1YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NThkZDk3YjUxNDI1MGE4NWRiZDdlMWVkZjcwYzcyMGE3NDU1MTY2ZmI4Yzcz
|
10
|
+
MjM1Njk0NDMzZDY2YmVhYWIwNjdjZTM3MjRlMWFkMzZmM2FlYmZjOTRmMTFi
|
11
|
+
MTYwYWM4MmE3Y2Q4ZGViMDI4OGYxMTNlZjYwN2ZlMWE4M2MwMTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mjc5MjIyYzQwY2ZkZGMyZjU3NGQyNDIwM2EwZGY2MzMxMmJhZmYzYTAzMDJk
|
14
|
+
ZWM0NDlmOTg0NmU5NmFlN2ViNjRkYjRiZWNhYzlmOGIwM2FmN2UxMDM5YjRi
|
15
|
+
Y2E0OGY3ZWRhMDBjYzliZWYxM2Y0YTE1OTQ0MTc2ZjYyYTBiZDM=
|
@@ -5,7 +5,7 @@ Then /^I should see email body that contains "([^"]*)"$/ do |text|
|
|
5
5
|
end
|
6
6
|
|
7
7
|
Then /^I should see email view with body that contains "([^"]*)"$/ do |text|
|
8
|
-
|
8
|
+
if not device.ios5?
|
9
9
|
warn_about_no_ios5_email_view
|
10
10
|
else
|
11
11
|
wait_for_animation
|
@@ -23,7 +23,7 @@ Then /^I touch the "([^"]*)" row and wait to see the email view$/ do |row_id|
|
|
23
23
|
should_see_row row_id
|
24
24
|
touch("tableViewCell marked:'#{row_id}'")
|
25
25
|
wait_for_animation
|
26
|
-
|
26
|
+
if not device.ios5?
|
27
27
|
warn_about_no_ios5_email_view
|
28
28
|
else
|
29
29
|
should_see_mail_view
|
@@ -34,7 +34,7 @@ Then /^I touch the "([^"]*)" row and wait to see the email view$/ do |row_id|
|
|
34
34
|
end
|
35
35
|
|
36
36
|
Then /^I should see email view with "([^"]*)" in the subject$/ do |text|
|
37
|
-
|
37
|
+
if not device.ios5?
|
38
38
|
warn_about_no_ios5_email_view
|
39
39
|
else
|
40
40
|
wait_for_animation
|
@@ -46,7 +46,7 @@ Then /^I should see email view with "([^"]*)" in the subject$/ do |text|
|
|
46
46
|
end
|
47
47
|
|
48
48
|
Then /^I should see email view with recipients? "([^"]*)"$/ do |comma_sep_addrs|
|
49
|
-
|
49
|
+
if not device.ios5?
|
50
50
|
warn_about_no_ios5_email_view
|
51
51
|
else
|
52
52
|
should_see_recipients comma_sep_addrs
|
@@ -59,7 +59,7 @@ Then /^I should see email view with to field set to "([^"]*)"$/ do |text|
|
|
59
59
|
end
|
60
60
|
|
61
61
|
Then /^I should see email view with text like "([^"]*)" in the subject$/ do |text|
|
62
|
-
|
62
|
+
if not device.ios5?
|
63
63
|
warn_about_no_ios5_email_view
|
64
64
|
else
|
65
65
|
should_see_mail_view
|
@@ -71,7 +71,7 @@ Then /^I should see email view with text like "([^"]*)" in the subject$/ do |tex
|
|
71
71
|
end
|
72
72
|
|
73
73
|
When /^I cancel email editing I should see the "([^"]*)" view$/ do |view_id|
|
74
|
-
|
74
|
+
if not device.ios5?
|
75
75
|
delete_draft_and_wait_for view_id
|
76
76
|
else
|
77
77
|
warn_about_no_ios5_email_view
|
@@ -91,6 +91,7 @@ Then /^I should see that the "([^"]*)" row has text "([^"]*)" in the "([^"]*)" l
|
|
91
91
|
end
|
92
92
|
|
93
93
|
Then /^I should see that the text I just entered is in the "([^"]*)" row "([^"]*)" label$/ do |row_id, label_id|
|
94
|
+
#noinspection RubyResolve
|
94
95
|
should_see_row_with_label_with_text row_id, label_id, @text_entered_by_keyboard
|
95
96
|
end
|
96
97
|
|
@@ -159,8 +160,10 @@ Then /^I should see that the "([^"]*)" row has image "([^"]*)"$/ do |row_id, ima
|
|
159
160
|
should_see_row_with_image row_id, image_id
|
160
161
|
end
|
161
162
|
|
162
|
-
|
163
163
|
Then(/^I should see that the "([^"]*)" row has no text in the "([^"]*)" label$/) do |row_id, label_id|
|
164
|
-
should_see_row_with_label_that_has_no_text
|
164
|
+
should_see_row_with_label_that_has_no_text row_id, label_id
|
165
165
|
end
|
166
166
|
|
167
|
+
|
168
|
+
|
169
|
+
|
data/lib/briar/control/button.rb
CHANGED
@@ -38,10 +38,10 @@ module Briar
|
|
38
38
|
touch("button marked:'#{button_id}'")
|
39
39
|
end
|
40
40
|
|
41
|
-
def touch_button_and_wait_for_view (button_id, view_id)
|
41
|
+
def touch_button_and_wait_for_view (button_id, view_id, timeout=BRIAR_WAIT_TIMEOUT)
|
42
42
|
touch_button(button_id)
|
43
43
|
unless view_id.nil?
|
44
|
-
wait_for_view view_id
|
44
|
+
wait_for_view view_id, timeout
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
data/lib/briar/control/slider.rb
CHANGED
@@ -1,6 +1,38 @@
|
|
1
1
|
module Briar
|
2
2
|
module Control
|
3
3
|
module Slider
|
4
|
+
|
5
|
+
def briar_args_for_slider_set_value(options)
|
6
|
+
args = []
|
7
|
+
if options.has_key?(:notify_targets)
|
8
|
+
args << options[:notify_targets] ? 1 : 0
|
9
|
+
else
|
10
|
+
args << 1
|
11
|
+
end
|
12
|
+
|
13
|
+
if options.has_key?(:animate)
|
14
|
+
args << options[:animate] ? 1 : 0
|
15
|
+
else
|
16
|
+
args << 1
|
17
|
+
end
|
18
|
+
args
|
19
|
+
end
|
20
|
+
|
21
|
+
def briar_slider_set_value(slider_id, value, options = {:animate => true,
|
22
|
+
:notify_targets => true})
|
23
|
+
value_str = value.to_f.to_s
|
24
|
+
args = briar_args_for_slider_set_value(options)
|
25
|
+
query_str = "slider marked:'#{slider_id}'"
|
26
|
+
views_touched = map(query_str, :changeSlider, value_str, *args)
|
27
|
+
if views_touched.empty? or views_touched.member? '<VOID>'
|
28
|
+
screenshot_and_raise "could not slider marked '#{slider_id}' to '#{value}' using query '#{query_str}' with options '#{options}'"
|
29
|
+
end
|
30
|
+
|
31
|
+
views_touched
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
4
36
|
# WARNING: requires a tap gesture recognizer on the slider
|
5
37
|
# you have been warned
|
6
38
|
def change_slider_value_to(slider_id, value)
|
data/lib/briar/keyboard.rb
CHANGED
@@ -106,12 +106,13 @@ module Briar
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
def briar_clear_text(view_id)
|
109
|
+
def briar_clear_text(view_id, timeout=5)
|
110
110
|
wait_for_view view_id
|
111
|
+
step_pause
|
111
112
|
touch("view marked:'#{view_id}'")
|
112
|
-
wait_for_button 'Select All'
|
113
|
+
wait_for_button 'Select All', timeout
|
113
114
|
step_pause
|
114
|
-
touch_button_and_wait_for_view 'Select All', 'Cut'
|
115
|
+
touch_button_and_wait_for_view 'Select All', 'Cut', timeout
|
115
116
|
step_pause
|
116
117
|
touch_button 'Cut'
|
117
118
|
step_pause
|
data/lib/briar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: briar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: calabash-cucumber
|
@@ -155,10 +155,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.1.
|
158
|
+
rubygems_version: 2.1.9
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
|
-
summary: briar-0.0
|
161
|
+
summary: briar-0.1.0
|
162
162
|
test_files:
|
163
163
|
- features/step_definitions/alerts_and_sheets/action_sheet_steps.rb
|
164
164
|
- features/step_definitions/alerts_and_sheets/alert_view_steps.rb
|