-
Notifications
You must be signed in to change notification settings - Fork 913
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
Xcode 13 - waitForView returns nil #1239
Comments
@alekkania have you or anyone else seen this on CI or is this mostly only local? |
@dostrander Yes it happen on CI as well. |
Got it, let me look into this a bit |
@alekkania is this just return nil or is it also giving you an error in the test when calling Also if you have a repro project and/or code that'd be super helpful |
@dostrander It seems that default timeout is not enough. I've forked KIF repo and change waitForView timeout to 200 seconds. It solved the issue with single tests but run in group still fails - stuck on waiting for view and fail in the end. |
@alekkania Would you be able to create a test to try to repro this in the KIF project and send over the branch? I am having trouble reproing it on my machine using beta 5 |
Hi any update around this bug, are we fixing it? we are facing the same issue with Xcode 13 |
@argneshu I haven't been able to repro on my end, is there a small project and/or peice of code you could put together that repros semi consistently. If it makes it easier adding a test to the KIF test suite might be easiest |
@dostrander Sorry I can't share the project. |
@alekkania is it always tableviews or collection views? Does it sometimes happen on other views as well or is it pretty particular to those? |
@dostrander tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString")) We were using tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString")) to fetch the text from accessibility element having traits as static text and we were able to fetch the text But after upgrading to Xcode 13 its returning null value, we tried other workaround but no success till now Label which I was trying to access is inside a CollectionItem, which is inside a UITableView Hierarchy is like |
@dostrander Yes it seems to be on table/collectionview always. I think that this is similar issue to @argneshu and #1240 this one. |
@alekkania @argneshu could you check against #1241 and see if that fixes your issue? |
@alekkania : yes it worked for us, thank you 👍 |
@dostrander It works for us as well. Thank you! |
Fixed in #1241 |
This has been released with 3.8.4 |
I faced with issue in Xcode 13 that
waitForView
method returns nil for view with accessibilityIdentifier as well as accessbilityLabel.It is strange because sometimes it works if tests are started as whole class instead of single one.
It mostly happen on UITable/CollectionView.
Anyone faced with this issue as well?
The text was updated successfully, but these errors were encountered: