Fakultas Ilmu Komputer UI

Commit bb1e56ce authored by Tsamara Esperanti Erwin's avatar Tsamara Esperanti Erwin
Browse files

[RED] Edit test remove preorder

parent e05a613f
Pipeline #62326 failed with stages
in 5 minutes and 50 seconds
......@@ -51,7 +51,6 @@ void main() {
description: 'aaaa',
price: '200000',
stock: 2,
preOrder: false,
subcategory: subCatId,
subcategoryName: subCatName);
listProduct =
......@@ -109,7 +108,6 @@ void main() {
description: 'aaaa',
price: '200000',
stock: 0,
preOrder: false,
subcategory: subCatId,
subcategoryName: subCatName)
]).toJson()));
......@@ -140,7 +138,6 @@ void main() {
description: 'aaaa',
price: '200000',
stock: null,
preOrder: true,
subcategory: subCatId,
subcategoryName: subCatName)
]).toJson()));
......@@ -154,7 +151,6 @@ void main() {
expect(find.text('aaaa'), findsOneWidget);
expect(find.text('Rp200.000'), findsOneWidget);
expect(find.text('Stock: 2'), findsNothing);
expect(find.text('Preorder'), findsOneWidget);
});
testWidgets('Load many product', (WidgetTester tester) async {
......@@ -233,7 +229,6 @@ void main() {
category: 'catId',
name: 'kue',
id: '1',
preOrder: false,
description: 'aaaa',
price: '200000',
stock: 2,
......@@ -386,7 +381,6 @@ void main() {
description: 'aaaa',
price: '200000',
stock: 2,
preOrder: false,
subcategory: 'subCatId',
subcategoryName: 'subCatName'))
], '200000', 1));
......@@ -418,7 +412,6 @@ void main() {
category: 'catId',
name: 'kue',
id: '1',
preOrder: false,
description: 'aaaa',
price: '200000',
stock: 2,
......
......@@ -50,7 +50,6 @@ void main() {
name: 'kue',
id: '1',
description: 'aaaa',
preOrder: false,
price: '200000',
stock: 2,
subcategory: subCatId,
......
......@@ -476,7 +476,6 @@ void main() {
price: '200000',
stock: 2,
subcategory: 'subCatId',
preOrder: false,
subcategoryName: 'subCatName'))
.toJson()
],
......@@ -536,7 +535,6 @@ void main() {
description: 'aaaa',
price: '200000',
stock: null,
preOrder: true,
subcategory: 'subCatId',
subcategoryName: 'subCatName'))
.toJson()
......@@ -569,11 +567,6 @@ void main() {
findsNWidgets(2));
await tester.tap(find.byIcon(Icons.description));
await tester.pumpAndSettle();
expect(
find.byWidgetPredicate((Widget widget) =>
widget is RichText &&
widget.text.toPlainText() == 'kue - preorder'),
findsOneWidget);
});
testWidgets('Summary loaded click buy', (WidgetTester tester) async {
......
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