Files
stadtbote-app/integration_test/job_test.dart
T
2024-04-09 09:57:21 +02:00

27 lines
833 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:stadtbote/main.dart';
void main() {
testWidgets('tap on the floating action button, verify counter',
(tester) async {
// Load app widget.
await tester.pumpWidget(MyApp());
// Verify the counter starts at 0.
expect(find.text('HH1091'), findsOneWidget);
// Finds the floating action button to tap on.
//final fab = find.byKey(const Key('increment'));
// Emulate a tap on the floating action button.
//await tester.tap(fab);
// Trigger a frame.
//await tester.pumpAndSettle();
// Verify the counter increments by 1.
//expect(find.text('0'), findsNothing);
//expect(find.text('1'), findsOneWidget);
});
}