Add tests for integration tests to devicelab (#79258)

This commit is contained in:
Jia Hao
2021-03-31 13:29:03 +08:00
committed by GitHub
parent 9bbe89d8e7
commit 8158b478d7
6 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// 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 'package:flutter_test/flutter_test.dart';
import 'package:integration_ui/build_mode.dart' as app;
void main() {
group('Integration Test', () {
testWidgets('smoke test', (WidgetTester tester) async {
app.main();
await tester.pumpAndSettle();
expect(find.text('Hello, world!'), findsOneWidget);
});
});
}

View File

@@ -13,6 +13,8 @@ dependencies:
sdk: flutter
flutter_driver:
sdk: flutter
integration_test:
sdk: flutter
test: 1.16.5
_fe_analyzer_shared: 19.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"