Skip to content

Commit

Permalink
version updatd
Browse files Browse the repository at this point in the history
  • Loading branch information
Munkh-Altai Chuluunbaatar authored and Munkh-Altai Chuluunbaatar committed Jan 15, 2022
1 parent f533b32 commit 2f6aa09
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_map_arcgis_example/main.dart';

void main() {
testWidgets('Verify Platform version', (WidgetTester tester) async {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());

// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data.startsWith('Running on:'),
),
findsOneWidget,
);
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);

// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();

// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}

0 comments on commit 2f6aa09

Please sign in to comment.