feat(app): the Needs-you bell joins the Runs app-bar actions

This commit is contained in:
2026-10-23 18:37:01 +01:00
parent 79204859e4
commit a9064b04c2
2 changed files with 28 additions and 25 deletions
@@ -177,20 +177,22 @@ void main() {
);
for (final cupertino in [false, true]) {
testWidgets('the attention action heads the list under the actions '
testWidgets('the attention bell is one of the actions '
'(${cupertino ? 'Cupertino' : 'Material'})', (tester) async {
await mount(tester, cupertino: cupertino);
await tester.pumpAndSettle();
final bell = find.descendant(
of: find.byType(RunsFilters),
matching: find.byType(NeedsYouRunsHeading),
);
final bell = find.byType(NeedsYouRunsHeading);
expect(bell, findsOneWidget);
// Not in a row of its own: it shares the actions' line, before filter.
final filter = find.byKey(const ValueKey('runs.filter'));
expect(
tester.getTopLeft(bell).dy,
greaterThanOrEqualTo(
tester.getBottomLeft(find.byKey(const ValueKey('runs.filter'))).dy,
),
(tester.getCenter(bell).dy - tester.getCenter(filter).dy).abs(),
lessThan(2),
);
expect(tester.getCenter(bell).dx, lessThan(tester.getCenter(filter).dx));
expect(
find.descendant(of: find.byType(RunsFilters), matching: bell),
findsNothing,
);
expect(tester.takeException(), isNull);
});