Add platform_interaction_test_swift to devicelab (#35775)
diff --git a/dev/devicelab/bin/tasks/platform_channel_sample_test_swift.dart b/dev/devicelab/bin/tasks/platform_channel_sample_test_swift.dart new file mode 100644 index 0000000..18a1d59 --- /dev/null +++ b/dev/devicelab/bin/tasks/platform_channel_sample_test_swift.dart
@@ -0,0 +1,14 @@ +// Copyright 2019 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter_devicelab/framework/adb.dart'; +import 'package:flutter_devicelab/framework/framework.dart'; +import 'package:flutter_devicelab/tasks/integration_tests.dart'; + +Future<void> main() async { + deviceOperatingSystem = DeviceOperatingSystem.ios; + await task(createPlatformChannelSwiftSampleTest()); +}
diff --git a/dev/devicelab/lib/tasks/integration_tests.dart b/dev/devicelab/lib/tasks/integration_tests.dart index 116403e..a940a24 100644 --- a/dev/devicelab/lib/tasks/integration_tests.dart +++ b/dev/devicelab/lib/tasks/integration_tests.dart
@@ -47,6 +47,13 @@ ); } +TaskFunction createPlatformChannelSwiftSampleTest() { + return DriverTest( + '${flutterDirectory.path}/examples/platform_channel_swift', + 'test_driver/button_tap.dart', + ); +} + TaskFunction createEmbeddedAndroidViewsIntegrationTest() { return DriverTest( '${flutterDirectory.path}/dev/integration_tests/android_views',
diff --git a/dev/devicelab/manifest.yaml b/dev/devicelab/manifest.yaml index 579508a..5cafc98 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml
@@ -414,10 +414,17 @@ platform_channel_sample_test_ios: description: > - Runs a driver test on the Platform Channel sample app on iPhone 6. + Runs a driver test on the Platform Channel sample app on iPhone 6 Objective-C project. stage: devicelab_ios required_agent_capabilities: ["mac/ios"] + platform_channel_sample_test_swift: + description: > + Runs a driver test on the Platform Channel sample app on iPhone 6 Swift project. + stage: devicelab_ios + required_agent_capabilities: ["mac/ios"] + flaky: true + platform_view_ios__start_up: description: > Verifies that Platform View can be used from an iOS project.