Let primary summary reads precede optional validation

This commit is contained in:
2026-11-05 15:47:19 +00:00
parent 3a9ba55277
commit b8d3eaad35
3 changed files with 43 additions and 8 deletions
@@ -93,10 +93,19 @@ void main() {
await tester.tap(find.byKey(const Key('pipeline-row-1')));
await tester.pump();
await replyPipelineDetail(tester, channel, fixture);
// Optional validation must not get ahead of the Summary's primary read.
expect(requestsOf(channel, 'validate'), isEmpty);
await reply(tester, channel, 'list_schedules', 1, {
'type': 'schedules',
'schedules': <dynamic>[],
});
await waitForCount(tester, channel, 'validate', 1);
// Schedule content and launch controls remain available while the optional
// validation response is still outstanding.
expect(find.text('Loading schedules…'), findsNothing);
expect(find.byKey(runPipelineActionKey), findsOneWidget);
expect(find.text('Checking definition…'), findsOneWidget);
await reply(tester, channel, 'validate', 1, {'type': 'validated'});
await tester.tap(find.byKey(runPipelineActionKey));
await tester.pumpAndSettle();