feat(app): chat composer sends with an icon; no filler running line
This commit is contained in:
@@ -335,7 +335,7 @@ void main() {
|
||||
await tester.tap(find.byKey(const Key('chat-composer-primary')));
|
||||
await tester.pump();
|
||||
|
||||
FilledButton primary() => tester.widget<FilledButton>(
|
||||
IconButton primary() => tester.widget<IconButton>(
|
||||
find.byKey(const Key('chat-composer-primary')),
|
||||
);
|
||||
IconButton attach() => tester.widget<IconButton>(
|
||||
|
||||
@@ -25,15 +25,15 @@ void main() {
|
||||
composerThread(gateway, newOperationId: nextOperation),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text(chatSendLabel), findsOneWidget);
|
||||
expect(find.byTooltip(chatSendLabel), findsOneWidget);
|
||||
|
||||
gateway.emitEvent(chatStepFrame('running'));
|
||||
await tester.pump();
|
||||
await tester.pump();
|
||||
|
||||
expect(find.text(chatSendLabel), findsNothing);
|
||||
expect(find.text(chatStopLabel), findsOneWidget);
|
||||
final button = tester.widget<FilledButton>(
|
||||
expect(find.byTooltip(chatSendLabel), findsNothing);
|
||||
expect(find.byTooltip(chatStopLabel), findsOneWidget);
|
||||
final button = tester.widget<IconButton>(
|
||||
find.byKey(const Key('chat-composer-primary')),
|
||||
);
|
||||
final scheme = Theme.of(
|
||||
|
||||
@@ -150,7 +150,7 @@ void main() {
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
FilledButton primary() => tester.widget<FilledButton>(
|
||||
IconButton primary() => tester.widget<IconButton>(
|
||||
find.byKey(const Key('chat-composer-primary')),
|
||||
);
|
||||
|
||||
|
||||
@@ -362,8 +362,7 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Approve bash'), findsOneWidget);
|
||||
expect(find.text('Assistant is responding…'), findsNothing);
|
||||
expect(find.text('Stop'), findsOneWidget);
|
||||
expect(find.byTooltip('Stop'), findsOneWidget);
|
||||
|
||||
gateway.emitRaw({
|
||||
'type': 'chat_permission',
|
||||
@@ -371,8 +370,9 @@ void main() {
|
||||
});
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Assistant is responding…'), findsOneWidget);
|
||||
expect(find.text('Stop'), findsOneWidget);
|
||||
// No filler line while the turn runs; Stop is the running signal.
|
||||
expect(find.byKey(const Key('chat-running')), findsNothing);
|
||||
expect(find.byTooltip('Stop'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('consecutive Material cards stay separate surfaces', (
|
||||
|
||||
@@ -422,7 +422,7 @@ void main() {
|
||||
expect(find.text('live code'), findsOneWidget);
|
||||
expect(find.textContaining('### Live answer'), findsNothing);
|
||||
expect(find.textContaining('`live code`'), findsNothing);
|
||||
expect(find.text('Assistant is responding…'), findsOneWidget);
|
||||
expect(find.byKey(const Key('chat-running')), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('formatted assistant output fits 320px at 2x in dark Cupertino', (
|
||||
|
||||
Reference in New Issue
Block a user