Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 committed Jan 18, 2024
1 parent d8f3851 commit 1c1a07a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/widgets/dialogs/settings_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void main() {
PrefsKeys.holonomicMode: true,
PrefsKeys.hotReloadEnabled: true,
PrefsKeys.teamColor: Colors.black.value,
PrefsKeys.ntServerAddress: 'localhost',
PrefsKeys.ntServerAddress: '127.0.0.1',
PrefsKeys.defaultMaxVel: 1.0,
PrefsKeys.defaultMaxAccel: 2.0,
PrefsKeys.defaultMaxAngVel: 3.0,
Expand Down Expand Up @@ -349,10 +349,11 @@ void main() {
),
));

final textField = find.widgetWithText(TextField, 'Host');
final textField =
find.widgetWithText(TextField, 'Host IP (localhost = 127.0.0.1)');

expect(textField, findsOneWidget);
expect(find.descendant(of: textField, matching: find.text('localhost')),
expect(find.descendant(of: textField, matching: find.text('127.0.0.1')),
findsOneWidget);

await widgetTester.enterText(textField, '10.30.15.2');
Expand Down

0 comments on commit 1c1a07a

Please sign in to comment.