mirror of
https://github.com/block/buzz.git
synced 2026-10-28 04:51:40 +00:00
Shorten remote agent action label to Delete
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -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)),
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user