File tree 4 files changed +16
-4
lines changed
4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ def leave_textfields
17
17
18
18
def go_to_textfields
19
19
screen . must_equal catalog
20
- wait_true { text ( 'textfield' ) . click ; screen == 'TextFields' } # wait for screen transition
20
+ wait_true do
21
+ text ( 'textfield' ) . click
22
+ screen == 'TextFields' # wait for screen transition
23
+ end
24
+
21
25
screen . must_equal 'TextFields'
22
26
end
23
27
Original file line number Diff line number Diff line change @@ -71,7 +71,11 @@ def before_first
71
71
# start page
72
72
tag ( 'UIANavigationBar' ) . name . must_equal 'UICatalog'
73
73
# nav to new page.
74
- wait_true { text ( 'buttons' ) . click ; tag ( 'UIANavigationBar' ) . name == 'Buttons' }
74
+ wait_true do
75
+ text ( 'buttons' ) . click
76
+ tag ( 'UIANavigationBar' ) . name == 'Buttons'
77
+ end
78
+
75
79
tag ( 'UIANavigationBar' ) . name . must_equal 'Buttons'
76
80
# go back
77
81
back_click
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def before_first
40
40
begin
41
41
set_wait 0
42
42
find_element ( :css , 'ok' )
43
- rescue Exception => e ;
43
+ rescue Exception => e
44
44
value = e . message
45
45
ensure
46
46
set_wait
Original file line number Diff line number Diff line change 2
2
describe 'ios/element/alert' do
3
3
def nav_once
4
4
screen . must_equal catalog
5
- wait_true { text ( 'alerts' ) . click ; tag ( 'UIANavigationBar' ) . name == 'Alerts' } # wait for true
5
+ wait_true do
6
+ text ( 'alerts' ) . click
7
+ tag ( 'UIANavigationBar' ) . name == 'Alerts' # wait for true
8
+ end
9
+
6
10
tag ( 'UIANavigationBar' ) . name . must_equal 'Alerts'
7
11
8
12
# redefine method as no-op after it's invoked once
You can’t perform that action at this time.
0 commit comments