Fakultas Ilmu Komputer UI

Commit 639cd167 authored by Muhammad Farhan Ghaffar's avatar Muhammad Farhan Ghaffar
Browse files

[REFACTOR] pulling for merge

parents d9e6e32c d13f1e4a
Pipeline #77266 passed with stages
in 8 minutes and 5 seconds
......@@ -668,7 +668,7 @@
"languageVersion": "2.7"
}
],
"generated": "2021-05-16T20:44:50.437451Z",
"generated": "2021-05-16T22:18:49.801678Z",
"generator": "pub",
"generatorVersion": "2.13.0-116.0.dev"
}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker_for_web-2.0.0\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle","image_picker_for_web"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-05-17 04:01:23.932176","version":"2.1.0-12.1.pre"}
\ No newline at end of file
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"D:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker_for_web-2.0.0\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_keyboard_visibility","dependencies":["flutter_keyboard_visibility_web"]},{"name":"flutter_keyboard_visibility_web","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle","image_picker_for_web"]},{"name":"image_picker_for_web","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-05-17 05:18:53.557295","version":"2.1.0-12.1.pre"}
\ No newline at end of file
......@@ -3,7 +3,7 @@
#
# For more info see: https://dart.dev/go/dot-packages-deprecation
#
# Generated by pub on 2021-05-17 03:44:50.296260.
# Generated by pub on 2021-05-17 05:18:49.239122.
_fe_analyzer_shared:file:///D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-14.0.0/lib/
analyzer:file:///D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.41.2/lib/
args:file:///D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.0.0/lib/
......
import 'package:flutter/material.dart';
import 'package:fundex_app/pages/business/prospectus_page.dart';
import 'package:fundex_app/pages/register/register.dart';
void main() {
runApp(MaterialApp(home: ProspectusPage()));
runApp(MaterialApp(home: RegisterPage()));
}
class MyApp extends StatelessWidget {
......
This diff is collapsed.
......@@ -580,6 +580,9 @@ class _BiodataKeluargaBodyState extends State<BiodataKeluarga> {
print("Failed");
return;
}
if (selectedRadio == 0) {
return;
}
Navigator.push(context,
MaterialPageRoute(builder: (context) {
......
......@@ -479,7 +479,17 @@ class _DataIdentitasState extends State<DataIdentitas> {
onPressed: () {
if (!_formkey.currentState.validate()) {
print("Failed");
return;
}
if (_imageFileKTP == null
|| _imageFileNPWP == null
|| _imageFileFotoSelfie == null
|| _imageFileFotoSelfieDenganKTP == null) {
print("masuk");
return;
}
Navigator.push(context,
MaterialPageRoute(builder: (context) {
return DataPendukung();
......
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:fundex_app/pages/business/Ukm.dart';
import 'package:fundex_app/pages/business/exploreBusiness.dart';
void main() {
......@@ -18,8 +17,6 @@ void main() {
final progressDropDownMenuItem =
find.byKey(Key('progressDropDownMenuItem'));
final urutkanDropDownMenuItem = find.byKey(Key('urutkanDropDownMenuItem'));
final ukmCard = find.byKey(Key('ukmCard'));
final List<Ukm> ukmList = ExploreBusiness().createState().ukmList;
// execute
await tester.pumpWidget(MaterialApp(home: ExploreBusiness()));
......@@ -33,7 +30,6 @@ void main() {
expect(progressDropDownMenuItem, findsNWidgets(3));
expect(urutkanDropDownMenuItem, findsNWidgets(3));
expect(clearFilterTextButton, findsOneWidget);
expect(ukmCard, findsNWidgets(ukmList.length));
});
testWidgets('Back Icon navigate into Dashboard when pressed',
......@@ -55,14 +51,14 @@ void main() {
testWidgets('Testing filter and sort', (WidgetTester tester) async {
// initialize
final exploreBusiness = ExploreBusiness();
final ukmCard = find.byKey(Key('ukmCard'));
final ukmCardHealth = find.byKey(Key('ukmCard: Health'));
final ukmCardEntertainment = find.byKey(Key('ukmCard: Entertainment'));
final ukmCardEdu = find.byKey(Key('ukmCard: Edu'));
final jenisPenawaranDropDown =
find.byKey(Key('jenisPenawaranDropDownButton'));
final progressDropDown = find.byKey(Key('progressDropDownButton'));
final urutkanDropDown = find.byKey(Key('urutkanDropDownButton'));
final clearFilter = find.byKey(Key('clearFilterTextButton'));
List<Ukm> ukmList = exploreBusiness.createState().ukmList;
// execute
await tester.pumpWidget(MaterialApp(
home: ExploreBusiness(),
......@@ -75,14 +71,14 @@ void main() {
await tester.tap(find.text('Health Tech').last);
await tester.pump();
await tester.pump(const Duration(seconds: 1));
expect(ukmCard, findsOneWidget);
expect(ukmCard, isNot(findsNWidgets(ukmList.length)));
expect(ukmCardHealth, findsOneWidget);
await tester.tap(clearFilter);
await tester.pump();
await tester.pump(const Duration(seconds: 1));
expect(ukmCard, findsNWidgets(ukmList.length));
expect(ukmCard, isNot(findsOneWidget));
expect(ukmCardEntertainment, findsOneWidget);
expect(ukmCardEdu, findsOneWidget);
expect(ukmCardHealth, findsOneWidget);
await tester.tap(progressDropDown);
await tester.pump();
......@@ -91,13 +87,11 @@ void main() {
await tester.tap(find.text('Akan Ditawarkan').last);
await tester.pump();
await tester.pump(const Duration(seconds: 1));
expect(ukmCard, findsOneWidget);
expect(ukmCard, isNot(findsNWidgets(ukmList.length)));
expect(ukmCardHealth, findsOneWidget);
await tester.tap(clearFilter);
await tester.pump();
await tester.pump(const Duration(seconds: 1));
expect(ukmCard, isNot(findsOneWidget));
await tester.tap(urutkanDropDown);
await tester.pump();
......@@ -106,6 +100,22 @@ void main() {
await tester.tap(find.text('Terbanyak didanai').last);
await tester.pump();
await tester.pump(const Duration(seconds: 1));
expect(ukmCard, findsNWidgets(ukmList.length));
});
testWidgets('Ukm Card navigate into Prospectus Page when pressed',
(WidgetTester tester) async {
// initialize
final appBarTitle = find.byKey(Key('appBarTitle'));
final ukmCard = find.byKey(Key('ukmCard: Health'));
// execute
await tester.pumpWidget(MaterialApp(
home: ExploreBusiness(),
));
await tester.tap(ukmCard);
await tester.pumpAndSettle();
// check outputs
expect(appBarTitle, findsOneWidget);
});
}
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