Unify flexible list-detail panes and highlight active pipelines and runs
This commit is contained in:
@@ -143,6 +143,9 @@ void main() {
|
||||
testWidgets('a /runs/1 boot link opens that run and Back returns to /runs', (
|
||||
tester,
|
||||
) async {
|
||||
tester.view.physicalSize = const Size(390, 844);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
addTearDown(tester.view.reset);
|
||||
final channel = FakeChannel()..readyCompleter.complete();
|
||||
final client = PipelinesClient(channelFactory: (_) => channel);
|
||||
final provider = PlatformRouteInformationProvider(
|
||||
@@ -159,6 +162,7 @@ void main() {
|
||||
],
|
||||
);
|
||||
await replyDetail(tester, channel, 1);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Run 1'), findsWidgets);
|
||||
expect(findNativeBack(), findsOneWidget);
|
||||
@@ -166,7 +170,7 @@ void main() {
|
||||
expect(find.text('Pipelines — Not implemented'), findsNothing);
|
||||
|
||||
await tester.tap(findNativeBack());
|
||||
await tester.pump();
|
||||
await tester.pumpAndSettle();
|
||||
expect(provider.value.uri.path, '/runs');
|
||||
expect(find.text('Deep-linked run'), findsWidgets);
|
||||
});
|
||||
@@ -259,7 +263,8 @@ void main() {
|
||||
await tester.pump();
|
||||
expect(provider.value.uri.path, '/runs/2');
|
||||
await replyDetail(tester, channel, 2);
|
||||
expect(findNativeBack(), findsOneWidget);
|
||||
expect(findNativeBack(), findsNothing);
|
||||
expect(find.byKey(const ValueKey('run-detail-pane')), findsOneWidget);
|
||||
|
||||
// The engine's browser Back arrives as new route information.
|
||||
await provider.didPushRouteInformation(
|
||||
@@ -278,7 +283,8 @@ void main() {
|
||||
await tester.pump();
|
||||
await replyDetail(tester, channel, 2);
|
||||
await tester.pump();
|
||||
expect(findNativeBack(), findsOneWidget);
|
||||
expect(findNativeBack(), findsNothing);
|
||||
expect(find.byKey(const ValueKey('run-detail-pane')), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('a malformed boot path is corrected to /pipelines', (
|
||||
|
||||
Reference in New Issue
Block a user