Shorten remote agent action label to Delete

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-19 18:07:07 -07:00
parent cbddabbe92
commit 1fbef0b349
2 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ class DeleteAgentAction extends HookConsumerWidget {
borderRadius: BorderRadius.circular(Radii.dialog),
),
),
child: Text(controller.busy ? 'Working…' : 'Delete agent'),
child: Text(controller.busy ? 'Working…' : 'Delete'),
),
if (error.value != null)
Text(error.value!, style: TextStyle(color: context.colors.error)),

View File

@@ -99,8 +99,8 @@ void main() {
),
);
await tester.pumpAndSettle();
expect(find.text('Delete agent'), findsOneWidget);
await tester.tap(find.text('Delete agent'));
expect(find.text('Delete'), findsOneWidget);
await tester.tap(find.text('Delete'));
await tester.pumpAndSettle();
expect(find.text('Delete Scout?'), findsOneWidget);
expect(registry.calls, isEmpty);