-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add disableWindowAnimation caps #857
feat: add disableWindowAnimation caps #857
Conversation
|
lib/driver.js
Outdated
const shouldEnableAnimation = isEnabled && !isAnimationOn; | ||
|
||
if (shouldDisableAnimation) { | ||
this.log.debug('Disabling window animation as "disableWindowAnimation" capability is set to true'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might not be necessarily set to true (e.g. if the default value is used)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated the message
README.md
Outdated
@@ -179,6 +179,7 @@ appium:chromeOptions | A mapping, that allows to customize chromedriver options. | |||
Capability Name | Description | |||
--- | --- | |||
appium:disableSuppressAccessibilityService | Being set to `true` tells the instrumentation process to not suppress accessibility services during the automated test. This might be useful if your automated test needs these services. `false` by default | |||
appium:disableWindowAnimation | Disables the window animation for Android device under test. `true` by default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it makes sense to describe in more details how enabling or disabling animations affects Espresso tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added link for google espresso testing recommendation https://developer.android.com/training/testing/espresso/setup#set-up-environment
## [2.17.0](v2.16.1...v2.17.0) (2023-03-13) ### Features * add disableWindowAnimation caps ([#857](#857)) ([eb4f60e](eb4f60e))
🎉 This PR is included in version 2.17.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Address #534 and makes animation configurable before launching the AUT.