Handle updated error message when iOS device is locked (#108057)
This commit is contained in:
@@ -258,7 +258,7 @@ void main () {
|
||||
expect(logger.errorText, contains('No Provisioning Profile was found'));
|
||||
});
|
||||
|
||||
testWithoutContext('device locked', () async {
|
||||
testWithoutContext('device locked code', () async {
|
||||
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
|
||||
const FakeCommand(
|
||||
command: <String>['ios-deploy'],
|
||||
@@ -273,6 +273,21 @@ void main () {
|
||||
expect(logger.errorText, contains('Your device is locked.'));
|
||||
});
|
||||
|
||||
testWithoutContext('device locked message', () async {
|
||||
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
|
||||
const FakeCommand(
|
||||
command: <String>['ios-deploy'],
|
||||
stdout: '[ +95 ms] error: The operation couldn’t be completed. Unable to launch io.flutter.examples.gallery because the device was not, or could not be, unlocked.',
|
||||
),
|
||||
]);
|
||||
final IOSDeployDebugger iosDeployDebugger = IOSDeployDebugger.test(
|
||||
processManager: processManager,
|
||||
logger: logger,
|
||||
);
|
||||
await iosDeployDebugger.launchAndAttach();
|
||||
expect(logger.errorText, contains('Your device is locked.'));
|
||||
});
|
||||
|
||||
testWithoutContext('unknown app launch error', () async {
|
||||
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
|
||||
const FakeCommand(
|
||||
|
||||
Reference in New Issue
Block a user