46 lines
1.3 KiB
Dart
46 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'fixtures.dart';
|
|
import 'test_helpers.dart';
|
|
|
|
/// The list stays a concise index; graph cues belong in the selected detail.
|
|
void main() {
|
|
group('pipeline list graph cues', () {
|
|
testWidgets('a recorded shape does not draw a list miniature', (
|
|
tester,
|
|
) async {
|
|
final fixture = PipelineFixture();
|
|
final gateway = gatewayFor(
|
|
fixture,
|
|
summaries: [
|
|
pipelineSummary(id: 7, name: 'Shape', stages: 2)
|
|
..['shape'] = reviewGraph(),
|
|
],
|
|
);
|
|
|
|
await pumpWide(tester, gateway);
|
|
|
|
expect(find.byKey(const Key('pipeline-mini-7')), findsNothing);
|
|
expect(find.textContaining('#7'), findsNothing);
|
|
expect(find.textContaining('2 stages'), findsOneWidget);
|
|
});
|
|
|
|
testWidgets('a summary without a shape retains its concise subtitle', (
|
|
tester,
|
|
) async {
|
|
final fixture = PipelineFixture();
|
|
final gateway = gatewayFor(
|
|
fixture,
|
|
summaries: [pipelineSummary(id: 8, name: 'Bare')],
|
|
);
|
|
|
|
await pumpWide(tester, gateway);
|
|
|
|
expect(find.byKey(const Key('pipeline-mini-8')), findsNothing);
|
|
expect(find.textContaining('#8'), findsNothing);
|
|
expect(find.textContaining('1 stage'), findsOneWidget);
|
|
});
|
|
});
|
|
}
|