Skip to content

Commit d9df88d

Browse files
Working on iOS GitHub CI
1 parent 5ae1f9c commit d9df88d

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

packages/flutter_test_runners/example_deep_links/test_driver/deep_link_ios_test.dart

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,34 @@ void main() {
4747
// print("The xcrun call returned with exit code: ${result.exitCode}");
4848
// });
4949

50-
testDeepLinkIosAppLaunch(
51-
"home screen",
52-
appBundleId: appBundleId,
53-
deepLink: "https://deeplinks.flutterbountyhunters.com",
54-
verbose: true,
55-
(driver) async {
56-
await driver.waitFor(find.text("Home Screen"));
57-
await Future.delayed(const Duration(seconds: 3));
58-
},
59-
);
50+
test("Send terminate command to simulator", () async {
51+
print("Sending xcrun simctl terminate command...");
52+
final process = await Process.start(
53+
"sh",
54+
["-c", "xcrun", "simctl", "terminate", "booted", "\"$appBundleId\""],
55+
);
56+
print("terminate command process was started");
57+
58+
process.stdin.close();
59+
60+
stdout.addStream(process.stdout);
61+
stderr.addStream(process.stderr);
62+
63+
print("Waiting for exit code...");
64+
final exitCode = await process.exitCode;
65+
print("Killed app - exit code: $exitCode");
66+
});
67+
68+
// testDeepLinkIosAppLaunch(
69+
// "home screen",
70+
// appBundleId: appBundleId,
71+
// deepLink: "https://deeplinks.flutterbountyhunters.com",
72+
// verbose: true,
73+
// (driver) async {
74+
// await driver.waitFor(find.text("Home Screen"));
75+
// await Future.delayed(const Duration(seconds: 3));
76+
// },
77+
// );
6078

6179
// testDeepLinkIosAppLaunch(
6280
// "sign-up screen",

0 commit comments

Comments
 (0)