-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
flutter/plugins
#4088Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
On iOS 15 -[URLLauncherUITests testLaunch] fails.
Test Case '-[URLLauncherUITests testLaunch]' started.
t = 0.00s Start Test at 2021-06-23 12:20:41.965
t = 0.03s Set Up
t = 0.04s Open dev.flutter.plugins.urlLauncher
t = 0.07s Launch dev.flutter.plugins.urlLauncher
t = 2.31s Setting up automation session
t = 2.78s Wait for dev.flutter.plugins.urlLauncher to idle
t = 4.20s Waiting 30.0s for "Launch in app" Button to exist
t = 5.23s Checking `Expect predicate `exists == 1` for object "Launch in app" Button`
t = 5.23s Checking existence of `"Launch in app" Button`
t = 5.25s Get number of matches for: Descendants matching type WebView
t = 5.28s Tap "Launch in app" Button
t = 5.28s Wait for dev.flutter.plugins.urlLauncher to idle
t = 5.30s Find the "Launch in app" Button
t = 5.32s Check for interrupting elements affecting "Launch in app" Button
t = 5.33s Synthesize event
t = 5.54s Wait for dev.flutter.plugins.urlLauncher to idle
t = 5.56s Waiting 30.0s for WebView to exist
t = 6.59s Checking `Expect predicate `exists == 1` for object WebView`
t = 6.59s Checking existence of `WebView`
t = 6.73s Checking existence of `"ForwardButton" Button`
t = 6.79s Checking existence of `"ShareButton" Button`
/Users/magder/Projects/plugins/packages/url_launcher/url_launcher/example/ios/RunnerUITests/URLLauncherUITests.m:42: error: -[URLLauncherUITests testLaunch] : ((app.buttons[@"ShareButton"].exists) is true) failed
t = 6.94s Tear Down
On iOS 15 the ShareButton button identifier has been renamed to MoreOptionsButton.
https://github.com/flutter/plugins/blob/7d8bad02afa26b3dc34a5c7674c67511a8a58802/packages/url_launcher/url_launcher/example/ios/RunnerUITests/URLLauncherUITests.m#L42
Both iOS 14 and iOS 15 buttons have the label Share (in English), so if we switch to that it will work on both versions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically