feat(app): show template stage counts
This commit is contained in:
@@ -128,6 +128,10 @@ Future<void> openTemplates(
|
||||
},
|
||||
],
|
||||
});
|
||||
await reply(tester, channel, 'validate', listRead, {
|
||||
'type': 'graph',
|
||||
'graph': {'stages': <dynamic>[]},
|
||||
});
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -279,7 +283,7 @@ void main() {
|
||||
await tester.tap(find.byKey(templateCreateConfirmKey));
|
||||
await tester.pump();
|
||||
|
||||
await reply(tester, channel, 'validate', 1, {
|
||||
await reply(tester, channel, 'validate', 2, {
|
||||
'type': 'graph',
|
||||
'graph': {'stages': <dynamic>[]},
|
||||
});
|
||||
@@ -334,7 +338,8 @@ void main() {
|
||||
// again adds no request.
|
||||
expect(requestsOf(channel, 'list_pipelines'), hasLength(2));
|
||||
expect(requestsOf(channel, 'list_runs'), hasLength(2));
|
||||
expect(requestsOf(channel, 'validate'), hasLength(1));
|
||||
// One validation derives the gallery count; the other belongs to Create.
|
||||
expect(requestsOf(channel, 'validate'), hasLength(2));
|
||||
expect(requestsOf(channel, 'submit'), hasLength(1));
|
||||
expect(sockets, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user