feat(app): an open pipeline, run or chat fills a phone screen; Back steps up one level; stage tabs end with Session
This commit is contained in:
@@ -99,4 +99,23 @@ void main() {
|
||||
findsNothing,
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('an open detail fills a phone screen without the tab bar', (
|
||||
tester,
|
||||
) async {
|
||||
tester.view.physicalSize = const Size(390, 844);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
addTearDown(tester.view.reset);
|
||||
Widget shell({required bool detail}) => MaterialApp(
|
||||
home: AdaptiveShell(
|
||||
destination: AppDestination.runs,
|
||||
detailOpen: detail,
|
||||
destinationBodies: {AppDestination.runs: (_) => const Text('runs')},
|
||||
),
|
||||
);
|
||||
await tester.pumpWidget(shell(detail: false));
|
||||
expect(find.byType(NavigationBar), findsOneWidget);
|
||||
await tester.pumpWidget(shell(detail: true));
|
||||
expect(find.byType(NavigationBar), findsNothing);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user