Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
disableWindowAnimation on Android clients in CI or HEADLESS envs.
Browse files Browse the repository at this point in the history
  • Loading branch information
randytarampi committed Apr 22, 2019
1 parent 71fedc9 commit 4cc3387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export const android = {
avdLaunchTimeout: DEVICE_TIMEOUT,
avdReadyTimeout: DEVICE_TIMEOUT,
uiautomator2ServerInstallTimeout: DEVICE_TIMEOUT,
uiautomator2ServerLaunchTimeout: DEVICE_TIMEOUT
uiautomator2ServerLaunchTimeout: DEVICE_TIMEOUT,
disableWindowAnimation: process.env.HEADLESS || process.env.CI || false
}
};

Expand Down Expand Up @@ -113,6 +114,7 @@ if (process.env.SAUCE) {
delete android.capabilities.avdReadyTimeout;
delete android.capabilities.uiautomator2ServerInstallTimeout;
delete android.capabilities.uiautomator2ServerLaunchTimeout;
delete android.capabilities.disableWindowAnimation;
android.capabilities.automationName = android.capabilities.automationName.toLowerCase(); // NOTE-RT: Sauce Labs wants this to be lowercase for some reason

delete ios.capabilities.waitforTimeout;
Expand Down

0 comments on commit 4cc3387

Please sign in to comment.