23 lines
761 B
Dart
23 lines
761 B
Dart
// Smoke test for the NetDesk connect screen.
|
|
//
|
|
// Builds [NetDeskApp] directly (bypassing `main`, which would otherwise try to
|
|
// load the native Rust engine) and verifies the brand mark and primary action
|
|
// render.
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'package:netdesk/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('Connect screen shows the NetDesk brand and Connect button',
|
|
(WidgetTester tester) async {
|
|
await tester.pumpWidget(const NetDeskApp());
|
|
|
|
expect(find.text('NetDesk'), findsOneWidget);
|
|
expect(find.text('by Akronlogic'), findsOneWidget);
|
|
expect(find.text('Connect'), findsOneWidget);
|
|
expect(find.byType(FilledButton), findsWidgets);
|
|
});
|
|
}
|