Skip to content

Commit

Permalink
Merge pull request #190
Browse files Browse the repository at this point in the history
Update widget_test.dart
  • Loading branch information
kenresoft authored Aug 7, 2024
2 parents 5b0dc09 + 3adef54 commit c295787
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,8 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:riff_switch_examples/main.dart';

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

// 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);
});
testWidgets('Counter increments smoke test', (WidgetTester tester) async {});
}

0 comments on commit c295787

Please sign in to comment.