File tree 3 files changed +12
-2
lines changed
test/unit/android/webdriver/w3c
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ def rotation=(orientation)
42
42
bridge . screen_orientation = orientation . to_s . upcase
43
43
end
44
44
alias rotate rotation =
45
+ alias orientation = rotation =
45
46
46
47
#
47
48
# Get the current screen orientation
Original file line number Diff line number Diff line change 14
14
15
15
module Appium
16
16
module Core
17
- VERSION = '6.2.0 ' unless defined? ::Appium ::Core ::VERSION
18
- DATE = '2023-01-26 ' unless defined? ::Appium ::Core ::DATE
17
+ VERSION = '6.2.1 ' unless defined? ::Appium ::Core ::VERSION
18
+ DATE = '2023-03-09 ' unless defined? ::Appium ::Core ::DATE
19
19
end
20
20
end
Original file line number Diff line number Diff line change @@ -227,6 +227,15 @@ def test_rotate
227
227
assert_requested ( :post , "#{ SESSION } /orientation" , times : 1 )
228
228
end
229
229
230
+ def test_orientation
231
+ stub_request ( :post , "#{ SESSION } /orientation" )
232
+ . to_return ( headers : HEADER , status : 200 , body : { value : 'xxxx' } . to_json )
233
+
234
+ @driver . orientation = :landscape
235
+
236
+ assert_requested ( :post , "#{ SESSION } /orientation" , times : 1 )
237
+ end
238
+
230
239
def test_active_element
231
240
stub_request ( :get , "#{ SESSION } /element/active" )
232
241
. to_return ( headers : HEADER , status : 200 , body : { value : 'xxxx' } . to_json )
You can’t perform that action at this time.
0 commit comments