Skip to content

Commit

Permalink
Test filling out workout name
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mabe committed Jul 21, 2023
1 parent af3a4e7 commit 47f7883
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/workout_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import 'package:openhiit/main.dart';

void main() {
testWidgets('Load add workout smoke test', (WidgetTester tester) async {
String workoutName = "Test workout 1";

// Build our app and trigger a frame.
await tester.pumpWidget(const WorkoutTimer());

Expand All @@ -29,5 +31,9 @@ void main() {

// Verify that the next page has loaded.
expect(find.text('Name this workout:'), findsOneWidget);

// Fill out the Workout name.
expect(find.byType(TextFormField), findsOneWidget);
await tester.enterText(find.byType(TextFormField), workoutName);
});
}

0 comments on commit 47f7883

Please sign in to comment.