The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Desktop: test that opening a Buddy leaves every project as it was (#2172)
0xken15785b12d7de46
diff --git a/desktop/test/super_tab_sidebar_rows_test.dart b/desktop/test/super_tab_sidebar_rows_test.dartindex 3c9f92b83..6af9c6e85 100644--- a/desktop/test/super_tab_sidebar_rows_test.dart+++ b/desktop/test/super_tab_sidebar_rows_test.dart@@ -101,6 +101,38 @@ void main() {},);+ testWidgets(+ 'a Buddy click leaves a collapsed project collapsed and an expanded one expanded',+ (tester) async {+ final controller = await show(tester, humansSwarm());+ // A task of the project is open, and its list was then hidden: the+ // project shows as selected, as in the report.+ await controller.select('offline');+ await tester.tap(toggle);+ await tester.pumpAndSettle();+ expect(controller.expandedProjects, isEmpty);+ expect(controller.selectedId, 'offline');++ await tester.tap(dm);+ await tester.pumpAndSettle();+ expect(controller.selectedId, controller.buddyChat('lead')!.id);+ expect(controller.expandedProjects, isEmpty);+ expect(workgroup, findsNothing);++ // Open, and a task selected: the Buddy click leaves the list showing.+ await tester.tap(toggle);+ await tester.pumpAndSettle();+ await controller.select('offline');+ await tester.pumpAndSettle();+ await tester.tap(dm);+ await tester.pumpAndSettle();+ expect(controller.selectedId, controller.buddyChat('lead')!.id);+ expect(controller.expandedProjects, {'lead'});+ expect(workgroup, findsOneWidget);+ await close(tester, controller);+ },+ );+testWidgets('a project name click opens its chat and leaves its list as it was',(tester) async {