layer-wizard/test/widget_test.dart
Philip Peterson e0cbf8ae20 Initial commit: Layer Wizard
A GUI installer wizard for permanent rpm-ostree package layers on
bootc/image-based systems. Walks through: welcome/current-version check,
package name entry with existence check, confirmation, then a streamed
rpm-ostree install via pkexec. On success, writes a pending-confirmation
marker and installs an autostart entry so the next login shows a
"did this update work?" screen with a one-click rollback (bootc rollback
--apply) if not.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-06 05:25:05 -08:00

17 lines
667 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:layer_wizard/main.dart';
void main() {
testWidgets('app boots without crashing', (WidgetTester tester) async {
await tester.pumpWidget(const LayerWizardApp());
// Intentionally a single pump, not pumpAndSettle: startup kicks off real
// async work (reading a file, running `rpm-ostree status`) behind a
// CircularProgressIndicator, which never "settles". This just checks
// the app renders its initial loading frame without throwing.
await tester.pump();
expect(find.byType(CircularProgressIndicator), findsOneWidget);
});
}