fix(app): run actions share one compact native style, as the web's run-action buttons

This commit is contained in:
2026-10-23 12:47:05 +01:00
parent eda0b7d69a
commit 7ad183cf89
9 changed files with 27 additions and 13 deletions
@@ -65,7 +65,8 @@ void main() {
);
expect(find.byKey(cancelActionKey), findsOneWidget);
expect(find.byType(FilledButton), findsOneWidget);
// One native run-action style: outlined on Material.
expect(find.byType(OutlinedButton), findsOneWidget);
expect(gateway.calls, isEmpty);
await tester.tap(find.byKey(cancelActionKey));
@@ -116,7 +117,7 @@ void main() {
expect(find.byKey(cancelActionKey), findsOneWidget);
expect(find.byType(CupertinoButton), findsOneWidget);
expect(find.byType(FilledButton), findsNothing);
expect(find.byType(OutlinedButton), findsNothing);
await tester.tap(find.byKey(cancelActionKey));
await tester.pumpAndSettle();
@@ -67,7 +67,8 @@ void main() {
await pumpRetry(tester, gateway: gateway, changed: changed);
expect(find.byKey(retryActionKey), findsOneWidget);
expect(find.byType(FilledButton), findsOneWidget);
// One native run-action style: outlined on Material.
expect(find.byType(OutlinedButton), findsOneWidget);
expect(gateway.calls, isEmpty);
await tester.tap(find.byKey(retryActionKey));
@@ -162,7 +163,7 @@ void main() {
expect(find.byKey(retryActionKey), findsOneWidget);
expect(find.byType(CupertinoButton), findsOneWidget);
expect(find.byType(FilledButton), findsNothing);
expect(find.byType(OutlinedButton), findsNothing);
await tester.tap(find.byKey(retryActionKey));
await tester.pumpAndSettle();