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
IT Project 2020
Group B
pilar-mobile
Commits
e05a613f
Commit
e05a613f
authored
Dec 29, 2020
by
Tsamara Esperanti Erwin
Browse files
[RED] Remove preorder
parent
afa33617
Pipeline
#62325
failed with stages
in 6 minutes and 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/cart_page_test.dart
View file @
e05a613f
...
...
@@ -45,7 +45,6 @@ void main() {
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
preOrder:
false
,
stock:
2
,
subcategory:
'subCatId'
,
subcategoryName:
'subCatName'
))
...
...
@@ -81,7 +80,6 @@ void main() {
category:
'catId'
,
name:
'kue'
,
id:
'1'
,
preOrder:
false
,
description:
'aaaa'
,
price:
'200000'
,
stock:
2
,
...
...
@@ -129,7 +127,6 @@ void main() {
category:
'catId'
,
name:
'kue'
,
id:
'1'
,
preOrder:
false
,
description:
'aaaa'
,
price:
'200000'
,
stock:
2
,
...
...
@@ -165,7 +162,6 @@ void main() {
categoryName:
'catName'
,
category:
'catId'
,
name:
'kue'
,
preOrder:
false
,
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
...
...
@@ -201,7 +197,6 @@ void main() {
categoryName:
'catName'
,
category:
'catId'
,
name:
'kue'
,
preOrder:
false
,
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
...
...
@@ -229,7 +224,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
10
,
subcategory:
'subCatId'
,
...
...
@@ -261,7 +255,6 @@ void main() {
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
preOrder:
false
,
stock:
10
,
subcategory:
'subCatId'
,
subcategoryName:
'subCatName'
))
...
...
@@ -278,7 +271,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
10
,
subcategory:
'subCatId'
,
...
...
@@ -321,7 +313,6 @@ void main() {
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
preOrder:
false
,
stock:
2
,
subcategory:
'subCatId'
,
subcategoryName:
'subCatName'
))
...
...
@@ -338,7 +329,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'subCatId'
,
...
...
@@ -366,7 +356,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'subCatId'
,
...
...
@@ -383,7 +372,6 @@ void main() {
id:
'2'
,
description:
'aaaa'
,
price:
'10000'
,
preOrder:
false
,
stock:
2
,
subcategory:
'subCatId'
,
subcategoryName:
'subCatName'
))
...
...
@@ -405,7 +393,6 @@ void main() {
category:
'catId'
,
name:
'kue'
,
id:
'1'
,
preOrder:
false
,
description:
'aaaa'
,
price:
'200000'
,
stock:
2
,
...
...
@@ -420,7 +407,6 @@ void main() {
category:
'catId'
,
name:
'kue'
,
id:
'2'
,
preOrder:
false
,
description:
'aaaa'
,
price:
'10000'
,
stock:
2
,
...
...
@@ -453,7 +439,6 @@ void main() {
1
,
Product
(
image:
null
,
preOrder:
false
,
categoryName:
'catName'
,
category:
'catId'
,
name:
'kue'
,
...
...
@@ -483,7 +468,6 @@ void main() {
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
preOrder:
true
,
stock:
null
,
subcategory:
'subCatId'
,
subcategoryName:
'subCatName'
))
...
...
@@ -491,7 +475,6 @@ void main() {
await
tester
.
pumpWidget
(
testedWidget
);
expect
(
find
.
text
(
'Keranjang'
),
findsOneWidget
);
expect
(
find
.
text
(
'kue'
),
findsOneWidget
);
expect
(
find
.
text
(
'Preorder'
),
findsOneWidget
);
expect
(
find
.
byType
(
PriceTextFormatter
),
findsNWidgets
(
3
));
});
...
...
@@ -524,7 +507,6 @@ void main() {
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
preOrder:
false
,
stock:
2
,
subcategory:
'subCatId'
,
subcategoryName:
'subCatName'
))
...
...
@@ -552,7 +534,6 @@ void main() {
category:
'catId'
,
name:
'kue'
,
id:
'1'
,
preOrder:
false
,
description:
'aaaa'
,
price:
'200000'
,
stock:
2
,
...
...
@@ -584,7 +565,6 @@ void main() {
categoryName:
'catName'
,
category:
'catId'
,
name:
'kue'
,
preOrder:
false
,
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
...
...
@@ -621,7 +601,6 @@ void main() {
categoryName:
'catName'
,
category:
'catId'
,
name:
'kue'
,
preOrder:
false
,
id:
'1'
,
description:
'aaaa'
,
price:
'200000'
,
...
...
@@ -651,7 +630,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'subCatId'
,
...
...
@@ -688,7 +666,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'subCatId'
,
...
...
@@ -735,7 +712,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'subCatId'
,
...
...
@@ -756,7 +732,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'subCatId'
,
...
...
test/category_page_test.dart
View file @
e05a613f
...
...
@@ -52,7 +52,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'idSub'
,
...
...
@@ -112,7 +111,6 @@ void main() {
description:
'aaaa'
,
price:
'200000'
,
stock:
null
,
preOrder:
true
,
subcategory:
'idSub'
,
subcategoryName:
'subcat'
)
]).
toJson
()));
...
...
@@ -125,7 +123,6 @@ void main() {
expect
(
find
.
byType
(
ListProductGrid
,
skipOffstage:
false
),
findsOneWidget
);
expect
(
find
.
byType
(
ProductGrid
,
skipOffstage:
false
),
findsOneWidget
);
expect
(
find
.
text
(
'kue'
,
skipOffstage:
false
),
findsOneWidget
);
expect
(
find
.
text
(
'Preorder'
,
skipOffstage:
false
),
findsOneWidget
);
});
testWidgets
(
'Category Page loaded cart not loaded'
,
...
...
@@ -335,7 +332,6 @@ void main() {
name:
'kue'
,
id:
'1'
,
description:
'aaaa'
,
preOrder:
false
,
price:
'200000'
,
stock:
2
,
subcategory:
'subCatId'
,
...
...
test/detail_product_test.dart
View file @
e05a613f
...
...
@@ -34,7 +34,6 @@ void main() {
subcategory:
'idsub'
,
price:
'10000'
,
description:
'testttt'
,
preOrder:
false
,
image:
null
);
cartBloc
=
CartBlocMock
();
widgetTested
=
BlocProvider
<
CartBloc
>.
value
(
...
...
@@ -63,7 +62,6 @@ void main() {
subcategory:
'idsub'
,
price:
'10000'
,
description:
'testttt'
,
preOrder:
true
,
image:
null
);
final
widget
=
BlocProvider
<
CartBloc
>.
value
(
value:
cartBloc
,
...
...
@@ -77,7 +75,6 @@ void main() {
expect
(
find
.
byType
(
PriceTextFormatter
),
findsOneWidget
);
expect
(
find
.
text
(
'Stok: 10'
),
findsNothing
);
expect
(
find
.
text
(
'testttt'
),
findsOneWidget
);
expect
(
find
.
text
(
'Preorder'
),
findsOneWidget
);
expect
(
find
.
text
(
'Rp10.000'
),
findsOneWidget
);
});
...
...
@@ -104,7 +101,6 @@ void main() {
subcategory:
'idsub'
,
price:
'10000'
,
description:
'testttt'
,
preOrder:
false
,
image:
null
);
final
widget
=
BlocProvider
<
CartBloc
>.
value
(
value:
cartBloc
,
...
...
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