feat(app): an open chat takes over the app bar instead of adding its own

This commit is contained in:
2026-10-23 22:36:42 +01:00
parent f81957cd73
commit c200ecdaa1
2 changed files with 101 additions and 62 deletions
@@ -231,9 +231,12 @@ void main() {
await tester.pump();
expect(find.text('A live line arrived.'), findsOneWidget);
// One compact icon-only Back control in the thread header; its
// accessible name is the destination, and both hosts share the key.
await tester.tap(find.byKey(const Key('chat-back')));
// The open chat takes over the app bar: one Back there, and no
// second header row under it.
expect(find.byKey(const Key('chat-thread-header')), findsNothing);
await tester.tap(find.byKey(const ValueKey('shell.back')));
await tester.pump();
// The bar hands back to the list on the next frame.
await tester.pump();
expect(provider.value.uri.path, '/chat');
expect(find.byType(ChatThreadView), findsNothing);