Fakultas Ilmu Komputer UI

Commit 6cbffac1 authored by Firriyal Bin Yahya's avatar Firriyal Bin Yahya
Browse files

[CHORE] test fungsional untuk pencarian

parent 0d16e1c2
Pipeline #37635 failed with stages
in 2 minutes and 48 seconds
......@@ -38,13 +38,11 @@ void main() {
testWidgets('display list view in pencarian', (WidgetTester tester) async {
// Provide the childWidget to the Container.
await tester.pumpWidget(MaterialApp(home: Pencarian()));
// [TODO] pencet textfieldnya, isi textfieldnya pake Coolidge
await tester.enterText(find.byKey(const Key("Text Field Mau Kemana")), "Coolidge");
await tester.pump();
await tester.pumpAndSettle();
expect(find.byKey(const Key("api-Coolidge")), findsOneWidget);
// [TODO] expect nya keluar satu item namanya coolidge, expectnya pake key aja
// [TODO] tiap item itu punya key unik
// Search for the childWidget in the tree and verify it exists.
//expect(find.byType(ListView), findsNWidgets);
......
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