From b5c1b61c73b826eb66ea0cd4662ee05efb4af44c Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Wed, 10 Jul 2019 14:13:01 -0700 Subject: [PATCH] Add platform_interaction_test_swift to devicelab (#35775) --- .../tasks/platform_channel_sample_test_swift.dart | 14 ++++++++++++++ dev/devicelab/lib/tasks/integration_tests.dart | 7 +++++++ dev/devicelab/manifest.yaml | 9 ++++++++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 dev/devicelab/bin/tasks/platform_channel_sample_test_swift.dart 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 0000000000..18a1d59c92 --- /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 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 116403eb94..a940a24c8a 100644 --- a/dev/devicelab/lib/tasks/integration_tests.dart +++ b/dev/devicelab/lib/tasks/integration_tests.dart @@ -47,6 +47,13 @@ TaskFunction createPlatformChannelSampleTest() { ); } +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 579508ae92..5cafc98026 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml @@ -414,10 +414,17 @@ tasks: 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.