File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/url_launcher/url_launcher_ios
example/ios/RunnerUITests Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## NEXT
2
+ * Fixes test button text to work on iOS 26.
3
+
1
4
## 6.3.4
2
5
3
6
* Updates to Pigeon 25.5.0.
Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ class URLLauncherUITests: XCTestCase {
28
28
button. tap ( )
29
29
let webView = app. webViews. firstMatch
30
30
XCTAssertTrue ( webView. waitForExistence ( timeout: 30.0 ) )
31
- XCTAssertTrue ( app. buttons [ " ForwardButton " ] . waitForExistence ( timeout: 30.0 ) )
32
- XCTAssertTrue ( app. buttons [ " Share " ] . exists)
33
- XCTAssertTrue ( app. buttons [ " OpenInSafariButton " ] . exists)
34
- let doneButton = app. buttons [ " Done " ]
31
+ XCTAssertTrue ( app. buttons [ " OpenInSafariButton " ] . waitForExistence ( timeout: 30.0 ) )
32
+
33
+ // iOS 18 is "Done". iOS 26 is "Close".
34
+ let doneButtonPredicate = NSPredicate ( format: " label = 'Close' OR label = 'Done' " )
35
+ let doneButton = app. buttons. element ( matching: doneButtonPredicate) . firstMatch
35
36
XCTAssertTrue ( doneButton. waitForExistence ( timeout: 30.0 ) )
36
37
// This should just be doneButton.tap, but for some reason that stopped working in Xcode 15;
37
38
// tapping via coordinate works, however.
You can’t perform that action at this time.
0 commit comments