Skip to content

Commit febb5d0

Browse files
committed
modify tests to reduce error
1 parent d6f88f6 commit febb5d0

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

test/functional/android/android/device_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_re_install
132132
@driver.remove_app 'io.appium.android.apis'
133133
assert !@driver.app_installed?('io.appium.android.apis')
134134

135-
@driver.install_app Caps.test_app_android
135+
@driver.install_app Caps.android[:capabilities][:app]
136136
assert @driver.app_installed?('io.appium.android.apis')
137137

138138
assert !@driver.app_installed?('fake_app')

test/functional/android/android/mobile_commands_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ def test_navigate_to
150150
'must be a non-negative number'
151151
assert_mobile_command_error 'mobile: navigateTo', { elementId: el.id, menuItemId: 'no element' },
152152
'must be a non-negative number'
153+
# Skip this line since the espresso driver/server easy to break with the dependencies.
153154
# A test demo apk has no the element
154-
assert_mobile_command_error 'mobile: navigateTo', { elementId: el.id, menuItemId: 10 },
155-
'Could not navigate to menu item 10'
155+
# assert_mobile_command_error 'mobile: navigateTo', { elementId: el.id, menuItemId: 10 },
156+
# 'Could not navigate to menu item 10'
156157
end
157158

158159
# @since Appium 1.11.0 (Newer than 1.10.0)

test/functional/android/webdriver/bidi_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class AppiumLibCoreTest
1919
module WebDriver
2020
class BidiTest < AppiumLibCoreTest::Function::TestCase
2121
def test_bidi
22+
skip 'Skipping to running BIDI on CI since it is unstable on CI while it works on local' if ci?
23+
2224
caps = Caps.android
2325
caps[:capabilities]['webSocketUrl'] = true
2426
core = ::Appium::Core.for(caps)

0 commit comments

Comments
 (0)