Created
August 17, 2019 14:30
-
-
Save adityadroid/fc2aed1d0bdbc688e84ca63bad722555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:messio/pages/ConversationPage.dart'; | |
| import 'package:messio/widgets/ChatAppBar.dart'; | |
| import 'package:messio/widgets/ChatListWidget.dart'; | |
| import 'package:messio/widgets/InputWidget.dart'; | |
| void main(){ | |
| const MaterialApp app = MaterialApp( | |
| home: Scaffold( | |
| body: const ConversationPage() | |
| ), | |
| ); | |
| testWidgets('ConversationPage UI Test', (WidgetTester tester) async { | |
| // Build our app and trigger a frame. | |
| await tester.pumpWidget(app); | |
| expect(find.byType(ChatAppBar),findsOneWidget); | |
| expect(find.byType(InputWidget),findsOneWidget); | |
| expect(find.byType(ChatListWidget),findsOneWidget); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment