Comments (17)
Got it, let me look into this a bit
from kif.
@alekkania have you or anyone else seen this on CI or is this mostly only local?
from kif.
@dostrander Yes it happen on CI as well.
from kif.
@alekkania is this just return nil or is it also giving you an error in the test when calling waitForView
?
Also if you have a repro project and/or code that'd be super helpful
from kif.
@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.
from kif.
@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
from kif.
Hi any update around this bug, are we fixing it? we are facing the same issue with Xcode 13
from kif.
@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
from kif.
@dostrander Sorry I can't share the project.
I've tested in on new project with collection view and it seems to work but I have very simple cells and views there :/
from kif.
@alekkania is it always tableviews or collection views? Does it sometimes happen on other views as well or is it pretty particular to those?
from kif.
@dostrander
Sorry I cannot provide the exact code but below type of method we are using of KIFTestActor in our scripts
tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString"))
tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString", traits: UIAccessibilityTraits.staticText))
tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString")) as? UILabel
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
UITableView > UITableViewCell > UITableViewCellContentView > UILabel(Trait -> Static Text)
from kif.
@dostrander Yes it seems to be on table/collectionview always. I think that this is similar issue to @argneshu and #1240 this one.
from kif.
@alekkania @argneshu could you check against #1241 and see if that fixes your issue?
from kif.
@alekkania : yes it worked for us, thank you 👍
from kif.
@dostrander It works for us as well. Thank you!
from kif.
Fixed in #1241
from kif.
This has been released with 3.8.4
from kif.
Related Issues (20)
- KIF types each character twice HOT 1
- tapView() not working on SwiftUI views in Xcode 12 with KIF 3.8.6 HOT 3
- Xcode 13.4: NSFunctionExpression with selector is forbidden. HOT 11
- KIF-based UI tests crashes in Xcode 13.4 HOT 2
- Question: Does KIF require a mac? HOT 5
- Xcode 14 "Failed to select from Picker" HOT 6
- iOS16 press on keyboard doesn't work HOT 5
- KIF causes exception on using WKWebView HOT 2
- KIF with SwiftUI element HOT 2
- Tappable SwiftUI view that is not tapped by KIF HOT 5
- How to tap on system photo picker #help-wanted HOT 1
- Problems with async test HOT 6
- Way to use Quick6 Nimble11 with KIF UI testing framework
- Screen edge pan gesture is not recognized HOT 8
- [Question/Help] How to write E2E UI Integrations tests? HOT 2
- Is KIF real rendering? HOT 2
- iOS 17 - Entering text using a KIFUITestActor into a text field is broken HOT 2
- [Requirement] Privacy manifest for new sensitive APIs HOT 2
- Black screenshots on test failures on ios 17. HOT 6
- Possibility of intergrating with Swift Test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kif.