Files
pipelines/app/test/shell/shell_destination_menu_test.dart
alan 9551eceaed Complete Material-only APIs and fixtures
Remove obsolete control-family flags and icon metadata across all callers, dead alternate themes and host helpers, obsolete test setup, and the unused icon-font dependency. Preserve native Material Back transitions. Make navigation fixtures independent of update plugins and answer auxiliary shell snapshots so the complete application suite can run deterministically.
2026-11-11 21:55:39 +00:00

25 lines
908 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/shell/shell_destination_menu.dart';
import 'package:pipelines_app/shell/destination.dart';
void main() {
testWidgets('compact menu exposes all named destinations', (tester) async {
AppDestination? selected;
final menu = ShellDestinationMenu(
current: AppDestination.chat,
onSelected: (value) => selected = value,
);
await tester.pumpWidget(MaterialApp(home: Scaffold(body: menu)));
await tester.tap(find.text('Menu'));
await tester.pumpAndSettle();
for (final name in ['Pipelines', 'Runs', 'Chat', 'Search', 'Settings']) {
expect(find.text(name), findsOneWidget);
}
await tester.tap(find.text('Runs'));
await tester.pumpAndSettle();
expect(selected, AppDestination.runs);
expect(tester.takeException(), isNull);
});
}