Split graph into preview and explorer modes
This commit is contained in:
@@ -55,6 +55,7 @@ void main() {
|
||||
|
||||
expect(find.text('Relationship Graph'), findsOneWidget);
|
||||
expect(find.byType(InteractiveViewer), findsOneWidget);
|
||||
expect(find.text('Explore'), findsOneWidget);
|
||||
|
||||
final Finder avaNode = find.byKey(
|
||||
const ValueKey<String>('graph-node-p-ava'),
|
||||
@@ -101,6 +102,20 @@ void main() {
|
||||
await tester.pumpAndSettle(const Duration(milliseconds: 500));
|
||||
|
||||
expect(find.text('Relationship Graph'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.widgetWithText(OutlinedButton, 'Explore'));
|
||||
await tester.pumpAndSettle(const Duration(milliseconds: 500));
|
||||
|
||||
expect(find.text('Relationship Graph'), findsWidgets);
|
||||
expect(find.byTooltip('Reset view'), findsOneWidget);
|
||||
|
||||
await tester.tap(find.byTooltip('Reset view'));
|
||||
await tester.pumpAndSettle(const Duration(milliseconds: 250));
|
||||
|
||||
await tester.tap(find.byTooltip('Back'));
|
||||
await tester.pumpAndSettle(const Duration(milliseconds: 500));
|
||||
|
||||
expect(find.text('Relationship Graph'), findsOneWidget);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user