From e46a362bba655511b3b745622ab156965041aa60 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Mon, 29 Dec 2025 18:45:14 -0800 Subject: [PATCH 1/3] tune up a bit --- .github/workflows/functional-test.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index 157d496a..9897a07f 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -87,10 +87,9 @@ jobs: # Start Appium - run: npm install -g appium - run: | + appium driver install xcuitest appium plugin install images appium plugin install execute-driver - # Workaround to keep symlink to global appium - appium driver install xcuitest nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors 2>&1 > appium.log & - run: | @@ -164,10 +163,9 @@ jobs: npm install -g appium npm install -g mjpeg-consumer - run: | + appium driver install xcuitest appium plugin install images appium plugin install execute-driver - # Workaround to keep symlink to global appium - appium driver install xcuitest nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors 2>&1 > appium.log & - run: | From b551457d012f075ff3c8e11ea7900fbcd9cbfd98 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 3 Jan 2026 09:11:55 -0800 Subject: [PATCH 2/3] test: check with geo --- .../android/webdriver/device_test.rb | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/test/functional/android/webdriver/device_test.rb b/test/functional/android/webdriver/device_test.rb index d51e16a6..e7e19fab 100644 --- a/test/functional/android/webdriver/device_test.rb +++ b/test/functional/android/webdriver/device_test.rb @@ -57,20 +57,34 @@ def test_page_source end def test_location - latitude = 100 - longitude = 100 + latitude = 80 + longitude = -80 altitude = 75 @driver.set_location(latitude, longitude, altitude) return if ci? - # Here has been improved in Appium 1.14.0, but it is still unstable on Emulator... loc = @@core.wait { @driver.location } # check the location - assert_equal 100, loc.latitude - assert_equal 100, loc.longitude + assert_equal 80, loc.latitude + assert_equal(-80, loc.longitude) assert_equal 75, loc.altitude end + def test_location_with_mobile_ext + latitude = 80 + longitude = -80 + altitude = 75 + @driver.execute_script( + 'mobile: setGeolocation', + { latitude: latitude, longitude: longitude, altitude: altitude } + ) + + loc = @@core.wait { @driver.execute_script 'mobile: getGeolocation' } # check the location + assert_equal 80, loc['latitude'] + assert_equal(-80, loc['longitude']) + assert_equal 75, loc['altitude'] + end + def test_accept_alert @@core.wait { @driver.find_element :accessibility_id, 'App' }.click @@core.wait { @driver.find_element :accessibility_id, 'Alert Dialogs' }.click From 0899c2583d5649e05b510cad4b758d9f58dbf409 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 3 Jan 2026 09:38:53 -0800 Subject: [PATCH 3/3] revert the workaround --- .github/workflows/functional-test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index 9897a07f..6cfcccd3 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -87,9 +87,10 @@ jobs: # Start Appium - run: npm install -g appium - run: | - appium driver install xcuitest appium plugin install images appium plugin install execute-driver + # Workaround to keep symlink to global appium with plugins + appium driver install xcuitest nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors 2>&1 > appium.log & - run: | @@ -163,9 +164,10 @@ jobs: npm install -g appium npm install -g mjpeg-consumer - run: | - appium driver install xcuitest appium plugin install images appium plugin install execute-driver + # Workaround to keep symlink to global appium with plugins + appium driver install xcuitest nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors 2>&1 > appium.log & - run: |