feat(app): chat sections are clear collapsible dividers; closed chats start collapsed
This commit is contained in:
@@ -44,15 +44,12 @@ void main() {
|
||||
});
|
||||
await pumpEventQueue();
|
||||
|
||||
expect(controller.permissionFrames, hasLength(ChatThreadCards.settledLimit + 1));
|
||||
expect(
|
||||
controller.permissionFrames.first['request_id'],
|
||||
'req-5',
|
||||
);
|
||||
expect(
|
||||
controller.permissionFrames.last['request_id'],
|
||||
'req-pending',
|
||||
controller.permissionFrames,
|
||||
hasLength(ChatThreadCards.settledLimit + 1),
|
||||
);
|
||||
expect(controller.permissionFrames.first['request_id'], 'req-5');
|
||||
expect(controller.permissionFrames.last['request_id'], 'req-pending');
|
||||
});
|
||||
|
||||
test('settled forms are bounded while the pending one is kept', () async {
|
||||
@@ -75,7 +72,10 @@ void main() {
|
||||
});
|
||||
await pumpEventQueue();
|
||||
|
||||
expect(controller.questionForms, hasLength(ChatThreadCards.settledLimit + 1));
|
||||
expect(
|
||||
controller.questionForms,
|
||||
hasLength(ChatThreadCards.settledLimit + 1),
|
||||
);
|
||||
expect(controller.questionForms.first['id'], 'form-5');
|
||||
expect(controller.questionForms.last['id'], 'form-pending');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user