File tree 1 file changed +9
-2
lines changed
android_tests/lib/android/specs/android/element
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ # rake android[android/element/alert]
1
2
describe 'android/element/alert' do
2
3
def open_alert
3
4
# trigger the alert
4
- wait { button ( 'OK Cancel dialog with a long message' ) . click }
5
+ wait { button ( 'OK Cancel dialog with a message' ) . click }
5
6
end
6
7
7
8
t 'alert_click' do
@@ -11,7 +12,7 @@ def open_alert
11
12
12
13
# test
13
14
wait { open_alert }
14
- wait { alert_click ( 'Something ' ) }
15
+ wait { alert_click ( 'OK ' ) }
15
16
end
16
17
17
18
t 'alert_accept' do
@@ -32,6 +33,12 @@ def open_alert
32
33
33
34
t 'alert_dismiss_text' do
34
35
wait { open_alert }
36
+
37
+ # alert dialog button placement changed:
38
+ # 'OK Cancel dialog with a long message'
39
+ # Android L: 'Something, Cancel, Ok'
40
+ # Android 19: 'Cancel, Something, Ok'
41
+
35
42
wait { alert_dismiss_text . must_equal 'Cancel' }
36
43
wait { alert_dismiss }
37
44
You can’t perform that action at this time.
0 commit comments