briar 0.1.2 → 0.1.3.b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/briar.gemspec +12 -12
  3. data/features/step_definitions/alerts_and_sheets/action_sheet_steps.rb +2 -2
  4. data/features/step_definitions/bars/tabbar_steps.rb +0 -12
  5. data/features/step_definitions/control/segmented_control_steps.rb +5 -5
  6. data/features/step_definitions/email_steps.rb +0 -6
  7. data/features/step_definitions/keyboard_steps.rb +2 -3
  8. data/features/step_definitions/picker/date_picker_steps.rb +0 -7
  9. data/features/step_definitions/scroll_view_steps.rb +0 -7
  10. data/features/step_definitions/table_steps.rb +1 -12
  11. data/lib/briar.rb +41 -10
  12. data/lib/briar/alerts_and_sheets/action_sheet.rb +6 -5
  13. data/lib/briar/alerts_and_sheets/alert_view.rb +13 -11
  14. data/lib/briar/bars/navbar.rb +12 -12
  15. data/lib/briar/bars/tabbar.rb +1 -1
  16. data/lib/briar/bars/toolbar.rb +13 -11
  17. data/lib/briar/briar_core.rb +22 -20
  18. data/lib/briar/briar_uia.rb +18 -5
  19. data/lib/briar/control/button.rb +7 -6
  20. data/lib/briar/control/segmented_control.rb +4 -2
  21. data/lib/briar/control/slider.rb +5 -4
  22. data/lib/briar/cucumber.rb +1 -0
  23. data/lib/briar/email.rb +47 -11
  24. data/lib/briar/image_view.rb +4 -4
  25. data/lib/briar/{keyboard.rb → keyboard/keyboard.rb} +17 -12
  26. data/lib/briar/keyboard/uia_keyboard.rb +172 -0
  27. data/lib/briar/label.rb +5 -3
  28. data/lib/briar/picker/date_picker.rb +1 -0
  29. data/lib/briar/picker/date_picker_core.rb +4 -4
  30. data/lib/briar/picker/date_picker_manipulation.rb +1 -0
  31. data/lib/briar/scroll_view.rb +1 -1
  32. data/lib/briar/table.rb +49 -21
  33. data/lib/briar/text_field.rb +5 -0
  34. data/lib/briar/text_view.rb +8 -9
  35. data/lib/briar/version.rb +1 -1
  36. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93314dd49766ff68b61036af263bdb9493a37ae9
4
- data.tar.gz: a8caf27e07199bdcf4e5d954d190649ecd7d6d44
3
+ metadata.gz: 5231e29949bd6dce316e46e8892b0b5785307430
4
+ data.tar.gz: 259b97c2bf9bb0ec0f32854c5255b2792469fb3f
5
5
  SHA512:
6
- metadata.gz: 368c8b7088534f878a18ab4aad6f2150d42804f9eccf18da6a8f3eaed2adeca9ac38a0278486209b797aacb580fd2be316d44074576cd32a9b5979968918fb8d
7
- data.tar.gz: 78c34ffbf187dcc6a773937b9f6c4fb819a51fe32117e387a66ee7c8779477540f75c6f360eaf158bbd85ec599ceb2f093f0dcf00ba0796cea7aaad137618727
6
+ metadata.gz: 99d23ae36a4b4a2dd0f896435b402edcaaf4e3ab9f554597cc2b46664f2d0642f277e7f6cf81afb9e5ad9bc5f0670688412262d987a3230cd37b29cd8ea904c6
7
+ data.tar.gz: af09c628255dc79dc9e1d828fa1deaff33c5e157d2ee389e453d152290e175a65e12974805053849dff0809cd3752a8f019aded849192f1f349246d3972fb850
@@ -5,21 +5,21 @@ $:.push File.expand_path('../lib', __FILE__)
5
5
  require 'briar/version'
6
6
 
7
7
  Gem::Specification.new do |gem|
8
- gem.name = 'briar'
9
- gem.version = Briar::VERSION
10
- gem.authors = ['Joshua Moody']
11
- gem.email = ['joshuajmoody@gmail.com']
12
- gem.description = 'extends calabash-ios steps'
13
- gem.summary = "briar-#{gem.version}"
14
- gem.homepage = 'https://github.com/jmoody/briar'
15
- gem.license = 'MIT'
8
+ gem.name = 'briar'
9
+ gem.version = Briar::VERSION
10
+ gem.authors = ['Joshua Moody']
11
+ gem.email = ['joshuajmoody@gmail.com']
12
+ gem.description = 'extends calabash-ios steps'
13
+ gem.summary = "briar-#{gem.version}"
14
+ gem.homepage = 'https://github.com/jmoody/briar'
15
+ gem.license = 'MIT'
16
16
 
17
17
  gem.add_runtime_dependency 'calabash-cucumber'
18
18
  gem.add_runtime_dependency 'rake'
19
- gem.add_runtime_dependency 'syntax'
19
+ gem.add_runtime_dependency 'syntax'
20
20
 
21
- gem.files = `git ls-files`.split($/)
22
- gem.executables = 'briar'
23
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
21
+ gem.files = `git ls-files`.split($/)
22
+ gem.executables = 'briar'
23
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
24
24
  gem.require_paths = ['lib']
25
25
  end
@@ -2,8 +2,8 @@ Then /^I touch the "([^"]*)" button on the action sheet$/ do |button_title|
2
2
  timeout = 1.0
3
3
  msg = "waited for '#{timeout}' seconds but did not see sheet with button '#{button_title}'"
4
4
  options = {:timeout => timeout,
5
- :retry_frequency => BRIAR_RETRY_FREQ,
6
- :post_timeout => BRIAR_POST_TIMEOUT,
5
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
6
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
7
7
  :timeout_message => msg}
8
8
  wait_for(options) do
9
9
  not query('actionSheet').empty?
@@ -1,15 +1,3 @@
1
-
2
- Given /^that the tabbar is visible$/ do
3
- pending "deprecated 0.0.5 - use 'Then I should see the tabbar'"
4
- should_see_tabbar
5
- end
6
-
7
- Then /^the tabbar is visible$/ do
8
- pending "deprecated 0.0.5 - use 'Then I should see the tabbar'"
9
- should_see_tabbar
10
- end
11
-
12
-
13
1
  Then /^I should( not)? see the (?:tabbar|tab bar)$/ do |visibility|
14
2
  visibility ? should_not_see_tabbar : should_see_tabbar
15
3
  end
@@ -15,7 +15,7 @@ end
15
15
  ### deprecated - will remove in future versions ####
16
16
 
17
17
  Then /^I should see the segment I touched (is|is not) selected and the "([^"]*)" should be set correctly$/ do |selectedness, label_id|
18
- pending('deprecated 0.1.1 - no replacement')
18
+ deprecated('0.1.1', 'no replacement', :pending)
19
19
  #@associated_label = label_id
20
20
  #should_see_segment_with_selected_state @control_id, @segment_id, selectedness.eql?('is') ? 1 : 0
21
21
  ## unexpected!
@@ -25,19 +25,19 @@ Then /^I should see the segment I touched (is|is not) selected and the "([^"]*)"
25
25
  end
26
26
 
27
27
  Then /^I touch the segment again$/ do
28
- pending('deprecated 0.1.1 - no replacement')
28
+ deprecated('0.1.1', 'no replacement', :pending)
29
29
  #touch_segment @segment_id, @control_id
30
30
  end
31
31
 
32
32
  Then /^I should see the segment is not selected and the detail label is cleared$/ do
33
- pending('deprecated 0.1.1 - no replacement')
33
+ deprecated('0.1.1', 'no replacement', :pending)
34
34
  ## ugh - that @associated_label variable needs to be set
35
35
  #macro %Q|I should see segment "#{@segment_id}" in segmented control "#{@control_id}" is not selected|
36
36
  #macro %Q|I should see label "#{@associated_label}" with text ""|
37
37
  end
38
38
 
39
39
  Then /^I should see the segment I touched (is|is not) selected and the "([^"]*)" in the "([^"]*)" row should be set correctly$/ do |selectedness, label_id, row_id|
40
- pending('deprecated 0.1.1 - no replacement')
40
+ deprecated('0.1.1', 'no replacement', :pending)
41
41
  ## ugh - that @associated_label variable needs to be set
42
42
  #@associated_label = label_id
43
43
  #@associated_row = row_id
@@ -46,7 +46,7 @@ Then /^I should see the segment I touched (is|is not) selected and the "([^"]*)"
46
46
  end
47
47
 
48
48
  Then /^I should see the segment is not selected and the label in the row is cleared$/ do
49
- pending('deprecated 0.1.1 - no replacement')
49
+ deprecated('0.1.1', 'no replacement', :pending)
50
50
  ## ugh - difficult to extract to a function because we need the
51
51
  ## @associated_row and @associated_label to be set
52
52
  #macro %Q|I should see segment "#{@segment_id}" in segmented control "#{@control_id}" is not selected|
@@ -1,9 +1,3 @@
1
-
2
- #noinspection RubyUnusedLocalVariable
3
- Then /^I should see email body that contains "([^"]*)"$/ do |text|
4
- pending "deprecated 0.0.6 - use 'Then I should see email view with body that contains \"#{text}\"'"
5
- end
6
-
7
1
  Then /^I should see email view with body that contains "([^"]*)"$/ do |text|
8
2
  if not device.ios5?
9
3
  warn_about_no_ios5_email_view
@@ -1,4 +1,3 @@
1
-
2
1
  Then /^I should see the keyboard$/ do
3
2
  should_see_keyboard
4
3
  end
@@ -20,11 +19,11 @@ end
20
19
 
21
20
 
22
21
  Then /^I touch the delete key$/ do
23
- keyboard_enter_char 'Delete'
22
+ briar_keyboard_send_backspace
24
23
  end
25
24
 
26
25
  Then(/^I turn off spell checking and capitalization$/) do
27
- pending('deprecated 0.1.1 - not working')
26
+ deprecated('0.1.1', 'not working', :pending)
28
27
  #should_see_keyboard
29
28
  #turn_autocapitalization_off
30
29
  #turn_autocorrect_off
@@ -32,13 +32,6 @@ Then /^I change the picker to (\d+) days? ago at "([^"]*)"$/ do |days_ago, targe
32
32
  change_time_on_picker_with_time_str target_time
33
33
  end
34
34
 
35
-
36
- #noinspection RubyUnusedLocalVariable
37
- Then /^I change the picker date time to "([^"]*)"$/ do |target_time|
38
- pending 'deprecated 0.0.6 - not replaced with anything'
39
- end
40
-
41
-
42
35
  Then /^I should see that the date picker is in (time|date|date and time) mode$/ do |mode|
43
36
  if mode.eql? 'time'
44
37
  unless picker_is_in_time_mode
@@ -1,10 +1,3 @@
1
-
2
-
3
- #noinspection RubyUnusedLocalVariable
4
- Then /^I scroll (left|right|up|down) until I see "([^\"]*)" limit (\d+)$/ do |dir, marker, limit|
5
- pending "deprecated 0.0.6 - use Then I scroll #{dir} until I see \"#{marker}\""
6
- end
7
-
8
1
  Then /^I scroll (left|right|up|down) until I see "([^\"]*)"$/ do |dir, marker|
9
2
  wait_poll({:until_exists => "view marked:'#{marker}'",
10
3
  :timeout => 2}) do
@@ -7,17 +7,6 @@ Then(/^I scroll to the "([^"]*)" row$/) do |row_id|
7
7
  briar_scroll_to_row row_id
8
8
  end
9
9
 
10
- #noinspection RubyUnusedLocalVariable
11
- Then /^I scroll (left|right|up|down) until I see the "([^\"]*)" row limit (\d+)$/ do |dir, row_id, limit|
12
- pending "deprecated 0.0.6 - use 'Then I scroll to the \"#{row_id}\" row'"
13
- end
14
-
15
-
16
- #noinspection RubyUnusedLocalVariable
17
- Then /^I scroll (left|right|up|down) until I see (?:the|an?) "([^\"]*)" row$/ do |dir, row_id|
18
- pending "deprecated 0.0.8 - use 'Then I scroll to the \"#{row_id}\" row'"
19
- end
20
-
21
10
  Then /^I touch (?:the) "([^"]*)" row and wait for (?:the) "([^"]*)" view to appear$/ do |row_id, view_id|
22
11
  wait_for_row row_id
23
12
  step_pause
@@ -139,7 +128,7 @@ Then /^I should see a detail disclosure chevron in the "([^"]*)" row$/ do |row_i
139
128
  end
140
129
 
141
130
  Then /^I touch the "([^"]*)" switch in the "([^"]*)" row$/ do |switch_id, row_id|
142
- warn 'WARN: deprecated 0.1.1 - write a custom step'
131
+ deprecated('0.1.1', 'write a custom step', :warn)
143
132
  touch_switch_in_row switch_id, row_id
144
133
  end
145
134
 
@@ -2,23 +2,38 @@
2
2
 
3
3
  DEVICE_ENDPOINT = (ENV['DEVICE_ENDPOINT'] || 'http://localhost:37265')
4
4
 
5
- # deprecate these #
5
+ # will deprecate soon
6
6
  TOUCH_TRANSITION_TIMEOUT = 30.0
7
7
  TOUCH_TRANSITION_RETRY_FREQ = 0.5
8
+ ANIMATION_PAUSE = (ENV['ANIMATION_PAUSE'] || 0.6).to_f
9
+
10
+ # see below for replacements
11
+ BRIAR_RETRY_FREQ=0.1
12
+ BRIAR_POST_TIMEOUT=0.5
8
13
  ##################
9
14
 
10
15
  BRIAR_STEP_PAUSE = (ENV['STEP_PAUSE'] || 0.5).to_f
11
- BRIAR_WAIT_TIMEOUT = (ENV['WAIT_TIMEOUT'] || 4.0).to_f
12
- BRIAR_RETRY_FREQ = (ENV['RETRY_FREQ'] || 0.1).to_f
13
- BRIAR_POST_TIMEOUT = (ENV['POST_TIMEOUT'] || 0.2).to_f
14
-
15
- ANIMATION_PAUSE = (ENV['ANIMATION_PAUSE'] || 0.6).to_f
16
+ # we need an insanely long time out because of some changes in 0.9.163
17
+ # the waits succeed after a short amount of time (visually < 1 sec),
18
+ # but fail if the wait time out is too short (4s)
19
+ # 8 seconds works most of the time
20
+ # 10 seconds seems safe
21
+ # the problem with a long time out is that during development you want the
22
+ # tests to fail fast.
23
+ BRIAR_WAIT_TIMEOUT = (ENV['WAIT_TIMEOUT'] || 14.0).to_f
24
+ BRIAR_WAIT_RETRY_FREQ = (ENV['RETRY_FREQ'] || 0.1).to_f
25
+
26
+ # 'post timeout' is the time to wait after a wait function returns true
27
+ # i think 'wait step pause' is a better variable name
28
+ BRIAR_WAIT_STEP_PAUSE = (ENV['POST_TIMEOUT'] || 0.5).to_f
16
29
 
17
30
  #noinspection RubyConstantNamingConvention
18
31
  AI = :accessibilityIdentifier
19
32
  #noinspection RubyConstantNamingConvention
20
33
  AL = :accessibilityLabel
21
34
 
35
+ require 'calabash-cucumber'
36
+
22
37
  require 'briar/version'
23
38
  require 'briar/briar_core'
24
39
  require 'briar/briar_uia'
@@ -42,7 +57,8 @@ require 'briar/picker/date_picker'
42
57
 
43
58
  require 'briar/email'
44
59
  require 'briar/image_view'
45
- require 'briar/keyboard'
60
+ require 'briar/keyboard/keyboard'
61
+ require 'briar/keyboard/uia_keyboard'
46
62
  require 'briar/label'
47
63
  require 'briar/scroll_view'
48
64
 
@@ -50,6 +66,7 @@ require 'briar/table'
50
66
  require 'briar/text_field'
51
67
  require 'briar/text_view'
52
68
 
69
+
53
70
  #noinspection RubyDefParenthesesInspection
54
71
  def device ()
55
72
  url = URI.parse(ENV['DEVICE_ENDPOINT']|| 'http://localhost:37265/')
@@ -72,9 +89,21 @@ def device ()
72
89
  end
73
90
  end
74
91
 
75
- #noinspection RubyDefParenthesesInspection
76
- def gestalt ()
77
- pending("deprecated 0.0.8: replaced with Calabash::Cucumber::Device implementation - from now on use use 'device.*'")
92
+ # todo deprecated function needs file + line numbers
93
+ # todo deprecated function does not output on a new line when called within cucumber
94
+ def deprecated(version, msg, type)
95
+ allowed = [:pending, :warn]
96
+ unless allowed.include?(type)
97
+ screenshot_and_raise "type '#{type}' must be on of '#{allowed}'"
98
+ end
99
+
100
+ msg = "deprecated '#{version}' - '#{msg}'"
101
+
102
+ if type.eql?(:pending)
103
+ pending(msg)
104
+ else
105
+ warn "\nWARN: #{msg}"
106
+ end
78
107
  end
79
108
 
80
109
 
@@ -82,3 +111,5 @@ end
82
111
 
83
112
 
84
113
 
114
+
115
+
@@ -1,3 +1,4 @@
1
+ require 'calabash-cucumber'
1
2
  module Briar
2
3
  module Alerts_and_Sheets
3
4
 
@@ -36,9 +37,9 @@ module Briar
36
37
  def wait_for_sheet (sheet_id, timeout=BRIAR_WAIT_TIMEOUT)
37
38
  msg = "waited for '#{timeout}' seconds but did not see '#{sheet_id}'"
38
39
  wait_for(:timeout => timeout,
39
- :retry_frequency => BRIAR_RETRY_FREQ,
40
- :post_timeout => BRIAR_POST_TIMEOUT,
41
- :timeout_message => msg ) do
40
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
41
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
42
+ :timeout_message => msg) do
42
43
  sheet_exists? sheet_id
43
44
  end
44
45
  end
@@ -46,8 +47,8 @@ module Briar
46
47
  def wait_for_sheet_to_disappear(sheet_id, timeout=BRIAR_WAIT_TIMEOUT)
47
48
  msg = "waited for '#{timeout}' seconds for '#{sheet_id}' to disappear but it is still visible"
48
49
  options = {:timeout => timeout,
49
- :retry_frequency => BRIAR_RETRY_FREQ,
50
- :post_timeout => BRIAR_POST_TIMEOUT,
50
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
51
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
51
52
  :timeout_message => msg}
52
53
  wait_for(options) do
53
54
  not sheet_exists? sheet_id
@@ -1,3 +1,5 @@
1
+ require 'calabash-cucumber'
2
+
1
3
  module Briar
2
4
  module Alerts_and_Sheets
3
5
 
@@ -7,7 +9,7 @@ module Briar
7
9
 
8
10
  def alert_exists? (alert_id=nil)
9
11
  if device.ios7?
10
- res = send_uia_command command:'uia.alert() != null'
12
+ res = send_uia_command command: 'uia.alert() != null'
11
13
  res['value']
12
14
  else
13
15
  if alert_id.nil?
@@ -41,16 +43,16 @@ module Briar
41
43
  def should_see_alert_with_title (title, timeout=BRIAR_WAIT_TIMEOUT)
42
44
  if device.ios7?
43
45
  warn 'WARN: cannot distinguish between alert titles and messages'
44
- should_see_alert()
45
- if uia_query(:view, marked:"#{title}").empty?
46
+ should_see_alert
47
+ if uia_query(:view, marked: "#{title}").empty?
46
48
  screenshot_and_raise "expected to see alert with title '#{title}'"
47
49
  end
48
50
  else
49
51
  qstr = 'alertView child label'
50
52
  msg = "waited for '#{timeout}' for alert with title '#{title}'"
51
53
  wait_for(:timeout => timeout,
52
- :retry_frequency => BRIAR_RETRY_FREQ,
53
- :post_timeout => BRIAR_POST_TIMEOUT,
54
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
55
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
54
56
  :timeout_message => msg) do
55
57
  query(qstr, :text).include?(title)
56
58
  end
@@ -61,15 +63,15 @@ module Briar
61
63
  if device.ios7?
62
64
  warn 'WARN: cannot distinguish between alert titles and messages'
63
65
  should_see_alert
64
- if uia_query(:view, marked:"#{message}").empty?
66
+ if uia_query(:view, marked: "#{message}").empty?
65
67
  screenshot_and_raise "expected to see alert with title '#{message}'"
66
68
  end
67
69
  else
68
70
  qstr = 'alertView child label'
69
71
  msg = "waited for '#{timeout}' for alert with message '#{message}'"
70
72
  wait_for(:timeout => timeout,
71
- :retry_frequency => BRIAR_RETRY_FREQ,
72
- :post_timeout => BRIAR_POST_TIMEOUT,
73
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
74
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
73
75
  :timeout_message => msg) do
74
76
  query(qstr, :text).include?(message)
75
77
  end
@@ -78,8 +80,8 @@ module Briar
78
80
 
79
81
  def alert_button_exists? (button_id)
80
82
  if device.ios7?
81
- should_see_alert()
82
- not uia_query(:view, marked:"#{button_id}").empty?
83
+ should_see_alert
84
+ not uia_query(:view, marked: "#{button_id}").empty?
83
85
  else
84
86
  query('alertView child button child label', :text).include?(button_id)
85
87
  end
@@ -102,7 +104,7 @@ module Briar
102
104
 
103
105
 
104
106
  def touch_alert_button(button_title)
105
- should_see_alert()
107
+ should_see_alert
106
108
  if device.ios7?
107
109
  touch("view marked:'#{button_title}'")
108
110
  else
@@ -26,8 +26,8 @@ module Briar
26
26
  timeout = BRIAR_WAIT_TIMEOUT * 2.0
27
27
  msg = "waited for '#{timeout}' seconds but did not see navbar back button"
28
28
  wait_for(:timeout => timeout,
29
- :retry_frequency => BRIAR_RETRY_FREQ,
30
- :post_timeout => BRIAR_POST_TIMEOUT,
29
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
30
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
31
31
  :timeout_message => msg) do
32
32
  navbar_has_back_button?
33
33
  end
@@ -59,8 +59,8 @@ module Briar
59
59
  timeout = opts[:timeout]
60
60
  msg = "waited for '#{timeout}' seconds but did not see '#{mark}' in navigation bar"
61
61
  wait_for(:timeout => timeout,
62
- :retry_frequency => BRIAR_RETRY_FREQ,
63
- :post_timeout => BRIAR_POST_TIMEOUT,
62
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
63
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
64
64
  :timeout_message => msg) do
65
65
  queries.any? { |query| element_exists query }
66
66
  end
@@ -80,8 +80,8 @@ module Briar
80
80
  timeout = 1.0
81
81
  msg = "waited for '#{timeout}' seconds but i still see '#{name}' in navigation bar"
82
82
  wait_for(:timeout => timeout,
83
- :retry_frequency => BRIAR_RETRY_FREQ,
84
- :post_timeout => BRIAR_POST_TIMEOUT,
83
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
84
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
85
85
  :timeout_message => msg) do
86
86
  element_does_not_exist qstr
87
87
  end
@@ -104,8 +104,8 @@ module Briar
104
104
  def go_back_after_waiting
105
105
  sleep(0.2)
106
106
  wait_for(:timeout => 1.0,
107
- :retry_frequency => BRIAR_RETRY_FREQ,
108
- :post_timeout => BRIAR_POST_TIMEOUT) do
107
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
108
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE) do
109
109
  not query('navigationItemButtonView first').empty?
110
110
  end
111
111
  touch('navigationItemButtonView first')
@@ -115,7 +115,7 @@ module Briar
115
115
  def go_back_and_wait_for_view (view)
116
116
  sleep(0.2)
117
117
  wait_for(:timeout => BRIAR_WAIT_TIMEOUT,
118
- :retry_frequency => BRIAR_RETRY_FREQ) do
118
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ) do
119
119
  not query('navigationItemButtonView first').empty?
120
120
  end
121
121
 
@@ -128,7 +128,7 @@ module Briar
128
128
 
129
129
  def touch_navbar_item(item_name, wait_for_view_id=nil)
130
130
  wait_for(:timeout => BRIAR_WAIT_TIMEOUT,
131
- :retry_frequency => BRIAR_RETRY_FREQ) do
131
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ) do
132
132
  (index_of_navbar_button(item_name) != nil) || button_exists?(item_name)
133
133
  end
134
134
  sleep(0.2)
@@ -162,8 +162,8 @@ module Briar
162
162
  def should_see_navbar_with_title(title, timeout=BRIAR_WAIT_TIMEOUT)
163
163
  msg = "waited for '#{timeout}' seconds but i did not see #{title} in navbar"
164
164
  wait_for(:timeout => timeout,
165
- :retry_frequency => BRIAR_RETRY_FREQ,
166
- :post_timeout => BRIAR_POST_TIMEOUT,
165
+ :retry_frequency => BRIAR_WAIT_RETRY_FREQ,
166
+ :post_timeout => BRIAR_WAIT_STEP_PAUSE,
167
167
  :timeout_message => msg) do
168
168
  navbar_has_title? title
169
169
  end