Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2020
PPL-C
DTB-Layanan Fasilitas Publik Penyandang Disabilitas
PoiPoLeGan-PPLapanganTembak-DTB Layanan Fasilitas Publik Penyandang Disabilitas-FE
Commits
d88dee12
Commit
d88dee12
authored
May 03, 2020
by
Fakhira Devina
Browse files
[GREEN] add more test
parent
b3da29dc
Pipeline
#44432
passed with stages
in 6 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/page/filter_fasilitas/fasilitas.dart
View file @
d88dee12
...
...
@@ -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
),
),
...
...
test/fasilitas_test.dart
View file @
d88dee12
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment