fix(app): Needs you rows lead with the shared run status glyph, as the web

This commit is contained in:
2026-10-23 13:51:05 +01:00
parent 64a30cdad8
commit 7a40210223
4 changed files with 24 additions and 16 deletions
@@ -2,6 +2,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:pipelines_app/features/attention/domain/attention_models.dart';
import 'package:pipelines_app/features/attention/ui/needs_you_keys.dart';
import 'package:pipelines_app/ui/status/run_status_icon.dart';
import 'needs_you_test_support.dart';
@@ -40,6 +41,13 @@ void main() {
findsOneWidget,
);
expect(find.byKey(attentionClearAllKey), findsOneWidget);
// Each row leads with the shared run status glyph, as the web's rows.
expect(
tester
.widgetList<RunStatusIcon>(find.byType(RunStatusIcon))
.map((icon) => icon.state),
unorderedEquals(['failed', 'waiting']),
);
// The browser names each destructive control after the row it removes.
expect(attentionDismissName(tester, a), 'Dismiss Ship the release');