Reland "Add ios platform view integration test (#51882)" (#52440)

This commit is contained in:
Chris Yang
2020-03-11 16:32:47 -07:00
committed by GitHub
parent fed6ce17f8
commit 7fb7ea63b3
48 changed files with 1318 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
// Copyright 2014 The Flutter 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(createIOSPlatformViewTests());
}

View File

@@ -122,6 +122,13 @@ TaskFunction createFlutterDriverScreenshotTest({
);
}
TaskFunction createIOSPlatformViewTests() {
return DriverTest(
'${flutterDirectory.path}/dev/integration_tests/ios_platform_view_tests',
'lib/main.dart',
);
}
class DriverTest {
DriverTest(
this.testDirectory,

View File

@@ -564,6 +564,12 @@ tasks:
# Remove the flaky flag when we are sure the test is stable.
flaky: true
ios_platform_view_tests:
description: >
Runs end-to-end tests with platform views in the scene.
stage: devicelab_ios
required_agent_capabilities: ["mac/ios"]
# TODO(fujino): does not pass on iOS13 https://github.com/flutter/flutter/issues/41133
# system_debug_ios:
# description: >