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

[SR-2837] Bug in XCUITest Migration #45431

Closed
swift-ci opened this issue Oct 3, 2016 · 1 comment
Closed

[SR-2837] Bug in XCUITest Migration #45431

swift-ci opened this issue Oct 3, 2016 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Oct 3, 2016

Previous ID SR-2837
Radar None
Original Reporter natebirkholz (JIRA User)
Type Bug
Status Resolved
Resolution Invalid
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: d4074ef5e23d62cf23cbe7e69fb2b19e

Issue Description:

In swift 2.3, UI test generation creates the syntax (XCUIElement).children(matching: ) but the compiler only recognizes childrenMatchingType(), and you have to manually change the instances.

Example:

Generator creates:
app.collectionViews["LibraryStudioCollectionView"].cells["LibraryCreateAppletCell"].children(matching: .other).element.children(matching: .other).element.tap()

But has to be changed to this to run:
app.collectionViews["LibraryStudioCollectionView"].cells["LibraryCreateAppletCell"].childrenMatchingType(.Other).element.childrenMatchingType(.Other).element.tap()

@belkadan
Copy link
Contributor

belkadan commented Oct 3, 2016

UI testing is an Xcode feature, not a Swift feature. Please report this issue at bugreport.apple.com.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants