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
test(desktop): catch four tests up with #207 and #208 (#213)
Dee65281563b1c0
diff --git a/desktop/test/boot_flow_widget_test.dart b/desktop/test/boot_flow_widget_test.dartindex 302b2fd85..4197357b7 100644--- a/desktop/test/boot_flow_widget_test.dart+++ b/desktop/test/boot_flow_widget_test.dart@@ -992,6 +992,11 @@ void main() {app.selectedMachineId = machine.machineId;await app.selectAgent(machine.machineId, 'offline-agent');+ // Tall enough for the full guide: a pane beside others needs 546px of+ // body, which the default 600px window no longer leaves once the+ // workspace gutter is taken out.+ await tester.binding.setSurfaceSize(const Size(800, 700));+ addTearDown(() => tester.binding.setSurfaceSize(null));await tester.pumpWidget(ProviderScope(overrides: [appStateProvider.overrideWithValue(app)],@@ -1003,7 +1008,6 @@ void main() {expect(find.text('Harness is offline'), findsOneWidget);expect(app.panes.single.agentId, 'offline-agent');await tester.binding.setSurfaceSize(const Size(800, 560));- addTearDown(() => tester.binding.setSurfaceSize(null));await tester.pump();expect(find.text('Harness is not running on this computer.'),diff --git a/desktop/test/new_harness_box_test.dart b/desktop/test/new_harness_box_test.dartindex 2c44d5e83..f234bc60a 100644--- a/desktop/test/new_harness_box_test.dart+++ b/desktop/test/new_harness_box_test.dart@@ -13,6 +13,7 @@ import 'package:harness/core/repository_clone.dart';import 'package:harness/state/new_harness.dart';import 'package:harness/state/swarm_navigation.dart';import 'package:harness/state/swarm_search.dart';+import 'package:harness/widgets/box_chrome.dart' show kWorkspaceInset;import 'package:harness/widgets/new_harness_box.dart';import 'package:harness/ws/ws_conn.dart';import 'package:path/path.dart' as p;@@ -534,9 +535,9 @@ void main() {expect(find.byKey(const ValueKey('new-harness-box')), findsOneWidget);// Attached to the workspace's bottom edge, without dimming or resizing it.final dock = tester.getRect(find.byKey(const ValueKey('new-harness-box')));- expect(dock.left, 6);- expect(dock.right, tester.view.physicalSize.width - 6);- expect(dock.bottom, tester.view.physicalSize.height - 6);+ expect(dock.left, kWorkspaceInset);+ expect(dock.right, tester.view.physicalSize.width - kWorkspaceInset);+ expect(dock.bottom, tester.view.physicalSize.height - kWorkspaceInset);expect(find.byKey(const ValueKey('new-harness-input')), findsNothing);expect(FocusManager.instance.primaryFocus!.debugLabel,diff --git a/desktop/test/orchestrator_controls_test.dart b/desktop/test/orchestrator_controls_test.dartindex 477fda1c7..a682e8681 100644--- a/desktop/test/orchestrator_controls_test.dart+++ b/desktop/test/orchestrator_controls_test.dart@@ -152,7 +152,7 @@ void main() {await tester.tap(find.byTooltip('Inspect director'));await tester.pump();expect(app.activeSwarm.panes.any((p) => p.agentId == 'a0'), isTrue);- await tester.tap(find.byTooltip('New project (⌘P)'));+ await tester.tap(find.byTooltip('New project'));await tester.pumpAndSettle();expect(find.byType(OrchestratorLauncher), findsOneWidget);await tester.tap(find.byTooltip('Close'));diff --git a/desktop/test/settings_screen_test.dart b/desktop/test/settings_screen_test.dartindex 26fdb3b20..7de2c7720 100644--- a/desktop/test/settings_screen_test.dart+++ b/desktop/test/settings_screen_test.dart@@ -98,7 +98,10 @@ void main() {await tester.tap(find.byKey(const ValueKey('customize-appearance')));await tester.pumpAndSettle();expect(find.byKey(const Key('appearance-ui-size-field')), findsNothing);- await tester.tap(find.byKey(const ValueKey('customize-terminal')));+ // Four tabs scroll at this window width; bring Terminal into view first.+ final terminalTab = find.byKey(const ValueKey('customize-terminal'));+ await tester.ensureVisible(terminalTab);+ await tester.tap(terminalTab);await tester.pumpAndSettle();expect(find.byKey(const Key('terminal-font-family-dropdown')),