Skip to content

Commit 2d2a523

Browse files
authored
test: add settings (#460)
* test: add settings * Update test_helper.rb * Update test_helper.rb
1 parent 40e5c7c commit 2d2a523

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test_helper.rb

+10
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,16 @@ def android(activity_name = nil)
303303
AppiumLibCoreTest.appium_version == 'beta' || AppiumLibCoreTest.appium_version == 'next'
304304
)
305305
cap[:capabilities]['settings[trackScrollEvents]'] = false
306+
# reduce possible slowness
307+
# https://developer.android.com/reference/androidx/test/uiautomator/Configurator#setActionAcknowledgmentTimeout(long)
308+
# _Generally, this timeout should not be modified_
309+
# cap[:capabilities]['settings[actionAcknowledgmentTimeout]'] = 0
310+
# https://developer.android.com/reference/androidx/test/uiautomator/Configurator#setScrollAcknowledgmentTimeout(long)
311+
# _Generally, this timeout should not be modified_
312+
# cap[:capabilities]['settings[scrollAcknowledgmentTimeout]'] = 0
313+
cap[:capabilities]['settings[waitForIdleTimeout]'] = 0
314+
# Maybe this does not help so much.
315+
# cap[:capabilities]['settings[waitForSelectorTimeout]'] = 0
306316
else
307317
cap[:capabilities][:forceEspressoRebuild] = false
308318
cap[:capabilities][:espressoBuildConfig] = {}.to_json

0 commit comments

Comments
 (0)