Fakultas Ilmu Komputer UI

Commit d88dee12 authored by Fakhira Devina's avatar Fakhira Devina
Browse files

[GREEN] add more test

parent b3da29dc
Pipeline #44432 passed with stages
in 6 minutes and 21 seconds
......@@ -799,7 +799,7 @@ class _FasilitasState extends State<Fasilitas> {
],
),
Row(
key: Key('Tempat Ibadah'),
key: Key('Running Text'),
crossAxisAlignment:
CrossAxisAlignment.center,
children: <Widget>[
......@@ -821,7 +821,7 @@ class _FasilitasState extends State<Fasilitas> {
),
),
Text(
"Tempat Ibadah",
"Running Text",
style: TextStyle(
color: Colors.black, fontSize: 18),
),
......
......@@ -50,6 +50,24 @@ void main() {
await tester.pump(Duration(seconds: 1));
// inside filter
expect(find.byKey(Key('Urutan')), findsOneWidget);
expect(find.byKey(Key('Jenis Fasilitas')), findsOneWidget);
expect(find.byKey(Key('Komentar Terbaru')), findsOneWidget);
expect(find.byKey(Key('Komentar Terpopuler')), findsOneWidget);
expect(find.byKey(Key('Komentar dengan Rating Tertinggi')), findsOneWidget);
expect(find.byKey(Key('Kursi Roda')), findsOneWidget);
expect(find.byKey(Key('Lift')), findsOneWidget);
expect(find.byKey(Key('Toilet Disabilitas')), findsOneWidget);
expect(find.byKey(Key('Tempat Ibadah')), findsOneWidget);
await tester.drag(find.byKey(Key('Tempat Ibadah')), Offset(0,-200));
await tester.pump();
// expect(find.byKey(Key('Guiding Block')), findsOneWidget);
//expect(find.byKey(Key('Bidang Miring (Ramp)')), findsOneWidget);
//expect(find.byKey(Key('Juru Bahasa Isyarat')), findsOneWidget);
//expect(find.byKey(Key('Tongkat Disabilitas Netra')), findsOneWidget);
//expect(find.byKey(Key('Kursi Umum Disabilitas')), findsOneWidget);
//expect(find.byKey(Key('Parkir Umum')), findsOneWidget);
//expect(find.byKey(Key('Runing Text')), findsOneWidget);
//expect(find.byKey(Key('Parkir Disabilitas')), findsOneWidget);
// filter
await tester.tap(find.byKey(Key('Alamat')));
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