APY integrated without testing...
This commit is contained in:
@@ -134,7 +134,8 @@ void main() {
|
||||
// GROUP 1: Screen Rendering
|
||||
// ═══════════════════════════════════════════════════════════════════════════
|
||||
group('Screen Rendering', () {
|
||||
testWidgets('renders AppBar with "Account Statement" title', (tester) async {
|
||||
testWidgets('renders AppBar with "Account Statement" title',
|
||||
(tester) async {
|
||||
await tester.pumpWidget(_buildTestApp(users: [testUser]));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
@@ -204,8 +205,7 @@ void main() {
|
||||
expect(find.text('1234567890'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('dropdown shows all user accounts when tapped',
|
||||
(tester) async {
|
||||
testWidgets('dropdown shows all user accounts when tapped', (tester) async {
|
||||
await tester.pumpWidget(_buildTestApp(users: [testUser, testUser2]));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
@@ -370,8 +370,7 @@ void main() {
|
||||
|
||||
// Find the Icon for credit transactions (call_received)
|
||||
final iconFinder = find.byWidgetPredicate(
|
||||
(widget) =>
|
||||
widget is Icon && widget.color == const Color(0xFF10BB10),
|
||||
(widget) => widget is Icon && widget.color == const Color(0xFF10BB10),
|
||||
);
|
||||
expect(iconFinder, findsOneWidget);
|
||||
});
|
||||
@@ -388,7 +387,8 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.byType(SnackBar), findsOneWidget);
|
||||
expect(find.textContaining('Failed to load transactions'), findsOneWidget);
|
||||
expect(
|
||||
find.textContaining('Failed to load transactions'), findsOneWidget);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -441,8 +441,7 @@ void main() {
|
||||
// GROUP 9: PDF Export
|
||||
// ═══════════════════════════════════════════════════════════════════════════
|
||||
group('PDF Export', () {
|
||||
testWidgets(
|
||||
'pressing download FAB with no transactions shows snackbar',
|
||||
testWidgets('pressing download FAB with no transactions shows snackbar',
|
||||
(tester) async {
|
||||
mockRepo.mockTransactions = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user