-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[url_launcher_ios] Fix test button text to work on iOS 26 #9766
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## NEXT | ||
|
||
* Fixes integration test button text matcher to work on iOS 26. | ||
|
||
## 6.3.4 | ||
|
||
* Updates to Pigeon 25.5.0. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,11 @@ class URLLauncherUITests: XCTestCase { | |
button.tap() | ||
let webView = app.webViews.firstMatch | ||
XCTAssertTrue(webView.waitForExistence(timeout: 30.0)) | ||
XCTAssertTrue(app.buttons["ForwardButton"].waitForExistence(timeout: 30.0)) | ||
XCTAssertTrue(app.buttons["Share"].exists) | ||
XCTAssertTrue(app.buttons["OpenInSafariButton"].exists) | ||
let doneButton = app.buttons["Done"] | ||
XCTAssertTrue(app.buttons["OpenInSafariButton"].waitForExistence(timeout: 30.0)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the CI run this test on xcode 26, or I should manually verify this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested this in a PR draft running Xcode 26 beta 5 #9748. I rebased that branch onto this one. It failed before, but now passes:
|
||
|
||
// iOS 18 is "Done". iOS 26 is "Close". | ||
let doneButtonPredicate = NSPredicate(format: "label = 'Close' OR label = 'Done'") | ||
let doneButton = app.buttons.element(matching: doneButtonPredicate).firstMatch | ||
XCTAssertTrue(doneButton.waitForExistence(timeout: 30.0)) | ||
// This should just be doneButton.tap, but for some reason that stopped working in Xcode 15; | ||
// tapping via coordinate works, however. | ||
|
Uh oh!
There was an error while loading. Please reload this page.