Skip to content
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

Merged
merged 6 commits into from
Mar 13, 2023
Merged

feat: add disableWindowAnimation caps #857

merged 6 commits into from
Mar 13, 2023

Conversation

pr4bh4sh
Copy link
Contributor

@pr4bh4sh pr4bh4sh commented Feb 28, 2023

Address #534 and makes animation configurable before launching the AUT.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 28, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: pr4bh4sh / name: Prabhash (8c6f44b)

@pr4bh4sh pr4bh4sh changed the title Add setAnimation caps feat: add setAnimation caps Feb 28, 2023
README.md Outdated Show resolved Hide resolved
lib/driver.js Outdated Show resolved Hide resolved
lib/driver.js Outdated Show resolved Hide resolved
lib/driver.js Outdated Show resolved Hide resolved
lib/driver.js Outdated Show resolved Hide resolved
@pr4bh4sh pr4bh4sh marked this pull request as ready for review March 1, 2023 19:19
@pr4bh4sh pr4bh4sh requested review from KazuCocoa and mykola-mokhnach and removed request for KazuCocoa and mykola-mokhnach March 3, 2023 10:05
lib/driver.js Outdated Show resolved Hide resolved
lib/driver.js Outdated Show resolved Hide resolved
@pr4bh4sh pr4bh4sh requested a review from mykola-mokhnach March 3, 2023 16:09
lib/driver.js Outdated
const shouldEnableAnimation = isEnabled && !isAnimationOn;

if (shouldDisableAnimation) {
this.log.debug('Disabling window animation as "disableWindowAnimation" capability is set to true');
Copy link
Contributor

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)

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Contributor Author

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

@pr4bh4sh pr4bh4sh requested a review from mykola-mokhnach March 9, 2023 12:35
@KazuCocoa KazuCocoa changed the title feat: add setAnimation caps feat: add disableWindowAnimation caps Mar 9, 2023
@mykola-mokhnach mykola-mokhnach merged commit eb4f60e into appium:master Mar 13, 2023
github-actions bot pushed a commit that referenced this pull request Mar 13, 2023
## [2.17.0](v2.16.1...v2.17.0) (2023-03-13)

### Features

* add disableWindowAnimation caps ([#857](#857)) ([eb4f60e](eb4f60e))
@github-actions
Copy link

🎉 This PR is included in version 2.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants