Skip to content

Commit 5793097

Browse files
committed
test(appium): disable noReset on Browserstack
1 parent a52237d commit 5793097

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

appium/wdio.android.conf.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export const config: WebdriverIO.Config = {
1313
'appium:automationName': 'UiAutomator2',
1414
...(process.env.BUNDLE_ID ? { 'appium:appPackage': process.env.BUNDLE_ID } : {}),
1515
'appium:autoGrantPermissions': true,
16-
'appium:noReset': true,
16+
17+
// Browserstack doesn't allow acceptAlerts and noReset at the same time
18+
'appium:noReset': isLocal,
19+
1720
...(isLocal ? {} : { 'bstack:options': bstackOptions }),
1821

1922
// Disable ID locator autocompletion to avoid Flutter's Semantics(container:true) wrapping inputs in a View.

appium/wdio.ios.conf.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export const config: WebdriverIO.Config = {
1313
'appium:automationName': 'XCUITest',
1414
...(process.env.BUNDLE_ID ? { 'appium:bundleId': process.env.BUNDLE_ID } : {}),
1515
'appium:autoAcceptAlerts': true,
16-
'appium:noReset': true,
16+
17+
// Browserstack doesn't allow acceptAlerts and noReset at the same time
18+
'appium:noReset': isLocal,
19+
1720
...(isLocal ? {} : { 'bstack:options': bstackOptions }),
1821

1922
// Hide keyboard during session

0 commit comments

Comments
 (0)