feat(app): an open chat takes over the app bar instead of adding its own
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user