-
Notifications
You must be signed in to change notification settings - Fork 141
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
Labels
more info needed
The progress is halted due to insufficient information
Comments
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
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
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?
The text was updated successfully, but these errors were encountered: