Fakultas Ilmu Komputer UI

Commit 08566918 authored by wibias fuad's avatar wibias fuad
Browse files

pull from staging

parents 0bbb9214 91daa656
Pipeline #82412 passed with stages
in 7 minutes and 15 seconds
......@@ -704,7 +704,7 @@
"languageVersion": "2.7"
}
],
"generated": "2021-06-09T09:22:59.951597Z",
"generated": "2021-06-09T13:02:04.975712Z",
"generator": "pub",
"generatorVersion": "2.12.2"
}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_keyboard_visibility","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\flutter\\\\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-06-09 19:19:58.055615","version":"2.0.3"}
\ 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":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"android":[{"name":"flutter_keyboard_visibility","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility-5.0.0\\\\","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-2.0.1\\\\","dependencies":[]},{"name":"flutter_secure_storage","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_secure_storage-3.3.5\\\\","dependencies":[]},{"name":"image_picker","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.7.4\\\\","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"path_provider","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.1\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.0\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.0\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.0\\\\","dependencies":[]}],"web":[{"name":"flutter_keyboard_visibility_web","path":"C:\\\\flutter\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_keyboard_visibility_web-2.0.0\\\\","dependencies":[]},{"name":"image_picker_for_web","path":"C:\\\\flutter\\\\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-06-09 20:03:50.030829","version":"2.0.3"}
\ 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-06-09 16:22:59.880578.
# Generated by pub on 2021-06-09 20:02:04.940711.
_fe_analyzer_shared:file:///C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-14.0.0/lib/
analyzer:file:///C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.41.2/lib/
args:file:///C:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.0.0/lib/
......
......@@ -3,4 +3,4 @@ flutter.sdk=C:\\flutter\\flutter
=======
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1
flutter.versionCode=1
\ No newline at end of file
import 'package:flutter/material.dart';
import 'package:fundex_app/pages/login/Login.dart';
import 'package:google_fonts/google_fonts.dart';
class ActivationSuccess extends StatefulWidget {
@override
_ActivationSuccessState createState() => _ActivationSuccessState();
}
class _ActivationSuccessState extends State<ActivationSuccess> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SafeArea(
child: Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(children: <Widget>[
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Image.asset(
'assets/images/fundex-logo.png',
key: Key('fundexLogo'),
width: 82,
height: 22,
)),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: Text('Aktivasi berhasil',
key: Key('activationSuccessTitle'),
style: GoogleFonts.inter(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Color.fromRGBO(46, 47, 48, 1.0)))),
Container(
margin: const EdgeInsets.fromLTRB(0, 80, 0, 0),
child: Text(
'Selamat, aktivasi Anda berhasil.'
'\nSilahkan login untuk memulai perjalanan Anda'
'\ndi FundEx',
key: Key('activationSuccessText'),
style: GoogleFonts.inter(
fontSize: 12,
height: 2,
color: Color.fromRGBO(46, 47, 48, 1.0)),
textAlign: TextAlign.center,
)),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: SizedBox(
width: 343,
height: 40,
child: ElevatedButton(
key: Key("loginPageButton"),
onPressed: () {
Navigator.push(
context,
new MaterialPageRoute(
builder: (BuildContext context) =>
Login()));
},
child: Text('Masuk',
style: GoogleFonts.roboto(
fontSize: 14, fontWeight: FontWeight.bold)),
style: ElevatedButton.styleFrom(
primary: Color.fromRGBO(14, 40, 75, 1.0))),
),
)
])
]),
),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:fundex_app/pages/register/ActivationSuccess.dart';
import 'package:fundex_app/pages/login/Login.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:fundex_app/assets/colors.dart';
......@@ -13,15 +13,6 @@ class _RegisterSuccessState extends State<RegisterSuccess> {
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
floatingActionButton: FloatingActionButton(
key: Key('floatingActionButton'),
onPressed: () {
Navigator.push(
context,
new MaterialPageRoute(
builder: (BuildContext context) =>
MaterialApp(home: ActivationSuccess())));
}),
body: SafeArea(
child: Container(
child: Row(
......@@ -70,6 +61,27 @@ class _RegisterSuccessState extends State<RegisterSuccess> {
color: black3),
textAlign: TextAlign.center,
),
),
Container(
margin: const EdgeInsets.fromLTRB(0, 48, 0, 0),
child: SizedBox(
width: 343,
height: 40,
child: ElevatedButton(
key: Key("loginPageButton"),
onPressed: () {
Navigator.push(
context,
new MaterialPageRoute(
builder: (BuildContext context) =>
Login()));
},
child: Text('Masuk',
style: GoogleFonts.roboto(
fontSize: 14, fontWeight: FontWeight.bold)),
style: ElevatedButton.styleFrom(
primary: Color.fromRGBO(14, 40, 75, 1.0))),
),
)
],
)
......
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:fundex_app/pages/register/ActivationSuccess.dart';
void main() {
testWidgets('Texts and Images at ActivationSuccess are present',
(WidgetTester tester) async {
// initialize
final activationSuccessTitle =
find.byKey(ValueKey('activationSuccessTitle'));
final fundexLogo = find.byKey(ValueKey('fundexLogo'));
final activationSuccessText = find.byKey(ValueKey('activationSuccessText'));
// execute
await tester.pumpWidget(MaterialApp(home: ActivationSuccess()));
// check outputs
expect(activationSuccessTitle, findsOneWidget);
expect(fundexLogo, findsOneWidget);
expect(activationSuccessText, findsOneWidget);
});
testWidgets(
'Button at ActivationSuccess is present and triggers navigation after tapped',
(WidgetTester tester) async {
// initialize
final loginPageButton = find.byKey(ValueKey('loginPageButton'));
final loginPageTitle = find.byKey(ValueKey('loginPageTitle'));
// execute
await tester.pumpWidget(MaterialApp(home: ActivationSuccess()));
await tester.tap(loginPageButton);
await tester.pumpAndSettle();
// check outputs
expect(loginPageTitle, findsOneWidget);
});
}
......@@ -21,18 +21,18 @@ void main() {
expect(registerSuccessText, findsOneWidget);
});
testWidgets('test when floating button pressed navigate to another page',
testWidgets('test when login button pressed navigate to login page',
(WidgetTester tester) async {
// initialize
final floatingActionButton = find.byKey(Key('floatingActionButton'));
final activationSuccessText = find.byKey(Key('activationSuccessText'));
final loginButton = find.byKey(Key('loginPageButton'));
final fundexLogo = find.byKey(Key('fundexLogo'));
// execute
await tester.pumpWidget(MaterialApp(home: RegisterSuccess()));
await tester.tap(floatingActionButton);
await tester.tap(loginButton);
await tester.pumpAndSettle();
// check outputs
expect(activationSuccessText, findsOneWidget);
expect(fundexLogo, 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