feat(app): an open run takes over the app bar (Back, run, more menu); Search is the fifth tab; tabs keep their last screen

This commit is contained in:
2026-10-23 17:47:05 +01:00
parent 30e3f22a1c
commit 14a556ebd9
13 changed files with 606 additions and 289 deletions
+8 -5
View File
@@ -159,11 +159,11 @@ void main() {
await replyDetail(tester, channel, 1);
expect(find.text('Run 1'), findsWidgets);
expect(find.text('Back to list'), findsOneWidget);
expect(find.byKey(const ValueKey('shell.back')), findsOneWidget);
expect(provider.value.uri.path, '/runs/1');
expect(find.text('Pipelines — Not implemented'), findsNothing);
await tester.tap(find.text('Back to list'));
await tester.tap(find.byKey(const ValueKey('shell.back')));
await tester.pump();
expect(provider.value.uri.path, '/runs');
expect(find.text('Deep-linked run'), findsWidgets);
@@ -211,15 +211,17 @@ void main() {
await tester.pump();
expect(provider.value.uri.path, '/runs/2');
await replyDetail(tester, channel, 2);
expect(find.text('Back to list'), findsOneWidget);
expect(find.byKey(const ValueKey('shell.back')), findsOneWidget);
// The engine's browser Back arrives as new route information.
await provider.didPushRouteInformation(
RouteInformation(uri: Uri.parse('/runs')),
);
await tester.pump();
// The bar returns to the tab's own after the closed run hands it back.
await tester.pump();
expect(find.text('Beta run'), findsWidgets);
expect(find.text('Back to list'), findsNothing);
expect(find.byKey(const ValueKey('shell.back')), findsNothing);
// Forward re-opens the same run.
await provider.didPushRouteInformation(
@@ -227,7 +229,8 @@ void main() {
);
await tester.pump();
await replyDetail(tester, channel, 2);
expect(find.text('Back to list'), findsOneWidget);
await tester.pump();
expect(find.byKey(const ValueKey('shell.back')), findsOneWidget);
});
testWidgets('a malformed boot path is corrected to /pipelines', (