Job-Bemerkungen anzeigen
This commit is contained in:
1 parent
31a292e8d0
commit
32d3a8d567
4 files changed
+91
-5
No files matched your search
@@ -0,0 +1,27 @@
|
||||
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);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user