Fakultas Ilmu Komputer UI

Commit 55b85079 authored by Agnes Handoko's avatar Agnes Handoko
Browse files

[RED] add test for filter at list sekolah page

parent b3f13646
......@@ -19,4 +19,24 @@ void main() {
// Provide the childWidget to the Container.
await tester.pumpWidget(buildTestableWidget(ListSekolah()));
});
testWidgets('find inside filter page', (WidgetTester tester) async {
// Provide the childWidget to the Container.
await tester.pumpWidget(buildTestableWidget(ListSekolah()));
await tester.tap(find.byKey(Key('FilterButton')));
await tester.pump(Duration(seconds: 1));
expect(find.byType(Container), findsNWidgets(25));
expect(find.byType(Row), findsNWidgets(18));
expect(find.byType(Column), findsNWidgets(3));
expect(find.byType(Text), findsNWidgets(20));
expect(find.byType(Flex), findsNothing);
expect(find.text('jns fasilitas'), findsNothing);
expect(find.text('urutn'), findsNothing);
expect(find.text('hps smw'), findsNothing);
expect(find.byType(Scaffold), findsOneWidget);
expect(find.byType(Icon), findsNWidgets(3));
await tester.tap(find.byKey(Key('Scaffold Text Field')));
await tester.pump();
});
}
Supports Markdown
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