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
2021
Kelas D
Fundex.id - Security Crowdfunding Mobile Application
ppl2021-D-SLhape
Commits
125e6fc0
Commit
125e6fc0
authored
Mar 29, 2021
by
Manuel Yoseph Ray
Browse files
[GREEN] membuat splash screen]
parent
97ab6c6b
Pipeline
#67625
passed with stages
in 6 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/splash_screen_test.dart
View file @
125e6fc0
...
...
@@ -5,19 +5,18 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:fundex_app/main.dart'
;
import
'../lib/main.dart'
;
void
main
(
)
{
testWidgets
(
"Main screen loads"
,
(
WidgetTester
widgetTester
)
async
{
MaterialApp
(
home:
MyApp
());
await
sleep
(
Duration
(
seconds:
10
));
await
widgetTester
.
pumpAndSettle
();
testWidgets
(
'My widget has title and text'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MyApp
());
expect
(
find
.
text
(
'Hello World'
),
findsOneWidget
);
expect
(
find
.
text
(
'1'
),
findsNothing
);
expect
(
find
.
text
(
"What are you looking for?"
),
findsOneWidget
);
expect
(
find
.
text
(
'2'
),
findsNothing
);
expect
(
find
.
text
(
'Welcome to Flutters'
),
findsOneWidget
);
});
}
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