feat(app): the pipelines list switches between all and scheduled
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user