Let primary summary reads precede optional validation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user