Unverified Commit f0aea666 authored by Amir Hardon's avatar Amir Hardon Committed by GitHub

revive the android_views test (#53963)

parent 4bbdca91
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async'; import 'dart:async';
import 'dart:io' show Platform;
import 'package:flutter_driver/flutter_driver.dart'; import 'package:flutter_driver/flutter_driver.dart';
import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; import 'package:test/test.dart' hide TypeMatcher, isInstanceOf;
...@@ -20,14 +19,12 @@ Future<void> main() async { ...@@ -20,14 +19,12 @@ Future<void> main() async {
group('MotionEvents tests ', () { group('MotionEvents tests ', () {
test('recomposition', () async { test('recomposition', () async {
if (Platform.isAndroid) { final SerializableFinder motionEventsListTile =
final SerializableFinder motionEventsListTile = find.byValueKey('MotionEventsListTile');
find.byValueKey('MotionEventsListTile'); await driver.tap(motionEventsListTile);
await driver.tap(motionEventsListTile); await driver.waitFor(find.byValueKey('PlatformView'));
await driver.waitFor(find.byValueKey('PlatformView')); final String errorMessage = await driver.requestData('run test');
final String errorMessage = await driver.requestData('run test'); expect(errorMessage, '');
expect(errorMessage, '');
}
}); });
}); });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment