Split graph into preview and explorer modes

This commit is contained in:
Rijad Zuzo
2026-02-23 15:04:36 +01:00
parent 69f91ce2b9
commit e3151e71d0
3 changed files with 399 additions and 117 deletions
@@ -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);
},
);
}