feat(app): chat sections are clear collapsible dividers; closed chats start collapsed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
/// Closed chats start folded away; opens that section when it is shown.
|
||||
Future<void> expandClosedChats(WidgetTester tester) async {
|
||||
final section = find.byKey(const ValueKey('chat-section-Closed'));
|
||||
if (section.evaluate().isEmpty) return;
|
||||
final heading = find.descendant(of: section, matching: find.text('Closed'));
|
||||
await tester.ensureVisible(heading.first);
|
||||
await tester.tap(heading.first);
|
||||
await tester.pumpAndSettle();
|
||||
}
|
||||
Reference in New Issue
Block a user