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

[Testing] Disable system animations to save test execution time #27370

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Disable system animations to save test execution time.

Appium operates as a robot devoid of features like animations that consume time. The time spent waiting for them to conclude becomes entirely futile. Also, animations can introduce instability to our testing process by creating race conditions, necessitating the use of waits or other workarounds.

This PR introduce changes to disable system animations on Android and Catalyst. In Catalyst, each test verifying snapshots puts the app in full screen which involves a time-consuming animation. The goal is to reduce execution time.

@jsuarezruiz jsuarezruiz added the area-testing Unit tests, device tests label Jan 27, 2025
@Copilot Copilot bot review requested due to automatic review settings January 27, 2025 10:28
@jsuarezruiz jsuarezruiz requested a review from a team as a code owner January 27, 2025 10:28
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • src/TestUtils/src/UITest.Appium/ShellHelper.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)

src/TestUtils/src/UITest.Appium/Actions/AppiumCatalystSpecificActions.cs:36

  • Ensure that the new ToggleSystemAnimations functionality is covered by tests.
ToggleSystemAnimationsCommand => ToggleSystemAnimations(parameters),

@rmarinho rmarinho merged commit 913a9e7 into main Jan 28, 2025
314 of 316 checks passed
@rmarinho rmarinho deleted the uitest-speedup-1 branch January 28, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing Unit tests, device tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants