Skip to content

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.

test(desktop): open the Offline machines before Add agent in the picker test (#1567)

0xdiego25d4aafa1682f5
diff --git a/desktop/test/super_tab_picker_test.dart b/desktop/test/super_tab_picker_test.dart
index 7fe5f99d2..03faabe0c 100644
--- a/desktop/test/super_tab_picker_test.dart
+++ b/desktop/test/super_tab_picker_test.dart
@@ -120,6 +120,13 @@ void main() {
await tester.tap(find.byTooltip('Conversations'));
await tester.pumpAndSettle();
}
+ // The teammate's machine is not online here, so it sits under the closed "Offline" disclosure.
+ final offline = find.byKey(const ValueKey('super-machines-offline'));
+ if (machine.evaluate().isEmpty && offline.evaluate().isNotEmpty) {
+ await tester.ensureVisible(offline);
+ await tester.tap(offline);
+ await tester.pumpAndSettle();
+ }
await tester.ensureVisible(machine);
await tester.pumpAndSettle();
await tester.tap(machine);