Add android semantics integration test to device lab (#20971)
diff --git a/dev/devicelab/bin/tasks/android_semantics_integration_test.dart b/dev/devicelab/bin/tasks/android_semantics_integration_test.dart new file mode 100644 index 0000000..fa9b10e --- /dev/null +++ b/dev/devicelab/bin/tasks/android_semantics_integration_test.dart
@@ -0,0 +1,12 @@ +// Copyright 2018 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 'package:flutter_devicelab/framework/adb.dart'; +import 'package:flutter_devicelab/framework/framework.dart'; +import 'package:flutter_devicelab/tasks/integration_tests.dart'; + +void main() async { + deviceOperatingSystem = DeviceOperatingSystem.android; + await task(createAndroidSemanticsIntegrationTest()); +}
diff --git a/dev/devicelab/lib/tasks/integration_tests.dart b/dev/devicelab/lib/tasks/integration_tests.dart index bb5a41c..ea991bd 100644 --- a/dev/devicelab/lib/tasks/integration_tests.dart +++ b/dev/devicelab/lib/tasks/integration_tests.dart
@@ -52,6 +52,13 @@ ); } +TaskFunction createAndroidSemanticsIntegrationTest() { + return new DriverTest( + '${flutterDirectory.path}/dev/integration_tests/android_semantics_testing', + 'lib/main.dart', + ); +} + class DriverTest { DriverTest(
diff --git a/dev/devicelab/manifest.yaml b/dev/devicelab/manifest.yaml index 2bae9d7..8ffc13f 100644 --- a/dev/devicelab/manifest.yaml +++ b/dev/devicelab/manifest.yaml
@@ -136,6 +136,13 @@ stage: devicelab required_agent_capabilities: ["mac/android"] + android_semantics_integration_test: + description: > + Tests that the Android accessibility bridge produces correct semantics. + stage: devicelab + required_agent_capabilities: ["mac/android"] + flaky: true + run_release_test: description: > Checks that `flutter run --release` does not crash.