Fakultas Ilmu Komputer UI

Commit 8be5c73c authored by Manuel Yoseph Ray's avatar Manuel Yoseph Ray
Browse files

Delete TransactionSearch_test.dart

parent ba25ae0d
Pipeline #79911 passed with stages
in 10 minutes and 20 seconds
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:fundex_app/pages/transaction/Transaction.dart';
void main() {
testWidgets('Test Transaction', (WidgetTester tester) async {
// initialize
final tabMenungguKonfirmasiText =
find.byKey(Key('tabMenungguKonfirmasiText'));
final tabRiwayatText = find.byKey(Key('tabRiwayatText'));
final deposit = find.byKey(Key('deposit'));
final valueDeposit = find.byKey(Key('valueDeposit'));
final keteranganDeposit = find.byKey(Key('keteranganDeposit'));
final tanggalKadaluarsaDeposit =
find.byKey(Key('tanggalKadaluarsaDeposit'));
final keteranganTanggalKadaluarsaDeposit =
find.byKey(Key('keteranganTanggalKadaluarsaDeposit'));
final pembelian = find.byKey(Key('pembelian'));
final valuePembelian = find.byKey(Key('valuePembelian'));
final keteranganPembelian = find.byKey(Key('keteranganPembelian'));
final tanggalKadaluarsaPembelian =
find.byKey(Key('tanggalKadaluarsaPembelian'));
final keteranganTanggalKadaluarsaPembelian =
find.byKey(Key('keteranganTanggalKadaluarsaPembelian'));
// execute
await tester.pumpWidget(MaterialApp(home: Transaction()));
// check outputs
expect(tabMenungguKonfirmasiText, findsOneWidget);
expect(tabRiwayatText, findsOneWidget);
expect(deposit, findsOneWidget);
expect(valueDeposit, findsOneWidget);
expect(keteranganDeposit, findsOneWidget);
expect(tanggalKadaluarsaDeposit, findsOneWidget);
expect(keteranganTanggalKadaluarsaDeposit, findsOneWidget);
expect(pembelian, findsOneWidget);
expect(valuePembelian, findsOneWidget);
expect(keteranganPembelian, findsOneWidget);
expect(tanggalKadaluarsaPembelian, findsOneWidget);
expect(keteranganTanggalKadaluarsaPembelian, 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