feat(app): the pipelines list switches between all and scheduled

This commit is contained in:
2026-10-23 20:11:09 +01:00
parent 24d190b3cc
commit 766be32748
2 changed files with 66 additions and 0 deletions
@@ -117,4 +117,33 @@ void main() {
expect(find.text('Retry'), findsOneWidget);
expect(find.text('Select a pipeline.'), findsNothing);
});
testWidgets('the list switches between all and scheduled pipelines', (
tester,
) async {
final fixture = PipelineFixture();
await pumpWide(tester, gatewayFor(fixture));
expect(find.text('Alpha review'), findsOneWidget);
expect(find.text('Gamma legacy'), findsOneWidget);
await tester.tap(
find.descendant(
of: find.byKey(const Key('pipeline-scope')),
matching: find.text('Scheduled'),
),
);
await tester.pumpAndSettle();
// Beta has no schedule in the fixture; Alpha has one.
expect(find.text('Alpha review'), findsOneWidget);
expect(find.text('Beta deploy'), findsNothing);
await tester.tap(
find.descendant(
of: find.byKey(const Key('pipeline-scope')),
matching: find.text('All'),
),
);
await tester.pumpAndSettle();
expect(find.text('Beta deploy'), findsOneWidget);
});
}