feat(app): on a phone an open pipeline, run or chat is its own page over the tabs
This commit is contained in:
@@ -243,7 +243,7 @@ void main() {
|
||||
|
||||
await tester.pageBack();
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.byTooltip('Back to pipelines'));
|
||||
await tester.tap(find.byKey(const ValueKey('shell.back')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byKey(const Key('pipeline-list')), findsOneWidget);
|
||||
|
||||
@@ -282,7 +282,7 @@ void main() {
|
||||
|
||||
await tester.pageBack();
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.byTooltip('Back to pipelines'));
|
||||
await tester.tap(find.byKey(const ValueKey('shell.back')));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.byKey(const Key('pipeline-row-1')));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
@@ -33,9 +33,12 @@ void main() {
|
||||
expect(find.byKey(const Key('pipeline-list')), findsNothing);
|
||||
expect(find.byKey(const Key('pipeline-detail')), findsOneWidget);
|
||||
|
||||
await tester.tap(find.byTooltip('Back to pipelines'));
|
||||
// The open pipeline is its own page: its bar names it and Back closes it.
|
||||
expect(find.text('Alpha review'), findsWidgets);
|
||||
await tester.tap(find.byKey(const ValueKey('shell.back')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byKey(const Key('pipeline-list')), findsOneWidget);
|
||||
expect(find.byKey(const Key('pipeline-detail')), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets(
|
||||
|
||||
Reference in New Issue
Block a user