19 lines
531 B
Dart
19 lines
531 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'package:term_remote_ctl/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('shows the TermRemoteCtl bootstrap shell', (tester) async {
|
|
await tester.pumpWidget(const TermRemoteCtlApp());
|
|
await tester.pump();
|
|
|
|
expect(find.text('TermRemoteCtl'), findsOneWidget);
|
|
expect(
|
|
find.text('Bootstrap shell ready for the mobile client.'),
|
|
findsOneWidget,
|
|
);
|
|
expect(find.byIcon(Icons.computer), findsOneWidget);
|
|
});
|
|
}
|