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

Disable animations? #240

Open
PetroShylaiev opened this issue Apr 14, 2023 · 1 comment
Open

Disable animations? #240

PetroShylaiev opened this issue Apr 14, 2023 · 1 comment
Labels
more info needed The progress is halted due to insufficient information

Comments

@PetroShylaiev
Copy link

Hi there!

I have just a simple step in my test that checks for a View if it exists:

XCTAssertThrowsError(try specialView.find(viewWithAccessibilityIdentifier: SpecialView.AccessibilityIdentfier.someIdentifier.rawValue))

This step fails and my assumption is that it is due to transition animation I have for it.

I tried to disable animations like we used to do in UIKit - UIView.setAnimationsEnabled(false) but it does not affect SwiftUI for sure 🤷🏻‍♂️

Maybe we have some specific techniques to test it?

@nalexn
Copy link
Owner

nalexn commented Jul 11, 2023

Hey - animation modifiers aren't blocking the search, the issue must be elsewhere. Could you provide a minimal code sample of the view in which you do the search? It's hard to help without the code on hands to debug

@nalexn nalexn added the more info needed The progress is halted due to insufficient information label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed The progress is halted due to insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants