Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
pilar
pilar-mobile
Commits
32c1dd47
Commit
32c1dd47
authored
Jan 22, 2021
by
Tsamara Esperanti Erwin
Browse files
fix error tests
parent
4a44c8e5
Pipeline
#62750
failed with stages
in 2 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/detail_order_test.dart
View file @
32c1dd47
...
...
@@ -215,11 +215,6 @@ void main() {
widget
is
RichText
&&
widget
.
text
.
toPlainText
()
==
'Nastar Belimbing'
),
findsOneWidget
);
expect
(
find
.
byWidgetPredicate
((
Widget
widget
)
=
>
widget
is
RichText
&&
widget
.
text
.
toPlainText
()
==
'LARIIII - preorder'
),
findsOneWidget
);
});
testWidgets
(
'loaded 001 step progress'
,
(
WidgetTester
tester
)
async
{
...
...
test/product_payment_test.dart
View file @
32c1dd47
...
...
@@ -129,23 +129,6 @@ void main() {
);
expect
(
buttonSendClicked
.
props
,
[
transaction
,
accountName
,
image
,
bankName
,
bankIdDestination
]);
});
blocTest
(
'Payment Submitted error'
,
build:
()
async
{
when
(
dio
.
post
(
pop
,
data:
anyNamed
(
'data'
)))
.
thenAnswer
(
(
_
)
async
=
>
Response
<
Map
<
String
,
dynamic
>>(
statusCode:
400
));
return
paymentBloc
;
},
act:
(
bloc
)
async
=
>
bloc
.
add
(
ButtonSendClicked
(
transaction:
transaction
,
bankIdDestination:
'test'
,
bankName:
'ada'
,
accountName:
'a'
,
image:
await
getFile
(
'mock/transaction.json'
))),
expect:
[
UploadProofLoading
(),
UploadProofError
()],
verify:
(
_
)
async
{
verify
(
dio
.
post
(
any
,
data:
anyNamed
(
'data'
)))
.
called
(
1
);
});
});
group
(
'Payment body'
,
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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