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); }); }