From 35d9b1b32be3b0185b7c22e29eedd1631ac36a53 Mon Sep 17 00:00:00 2001 From: andrewwan Date: Sat, 5 Oct 2024 18:09:16 -0400 Subject: [PATCH] Ran linter --- flutter_app/test/widget/return_to_launch_widget_test.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flutter_app/test/widget/return_to_launch_widget_test.dart b/flutter_app/test/widget/return_to_launch_widget_test.dart index f5458a2..6035fb3 100644 --- a/flutter_app/test/widget/return_to_launch_widget_test.dart +++ b/flutter_app/test/widget/return_to_launch_widget_test.dart @@ -1,4 +1,3 @@ -import 'package:dart_mavlink/dialects/common.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:imacs/modules/mavlink_communication.dart'; @@ -21,7 +20,13 @@ void main() { home: Scaffold( body: ReturnToLaunchButton(returnToLaunchCommand: command)))); + // Waits for all frames and animations to settle + await tester.pumpAndSettle(); + expect(find.byType(ElevatedButton), findsOneWidget); + expect(find.text("Return To Launch"), findsOneWidget); }); + + testWidgets("Button sends MavLink command", (WidgetTester tester) async {}); }); }