From 28e2ea8e623a03da7e47fea58661950a308029bf Mon Sep 17 00:00:00 2001 From: joshavant <830519+joshavant@users.noreply.github.com> Date: Fri, 7 Aug 2026 15:39:49 -0500 Subject: [PATCH] test(mac): isolate dashboard frame autosave smoke --- .../Tests/OpenClawIPCTests/DashboardWindowSmokeTests.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/macos/Tests/OpenClawIPCTests/DashboardWindowSmokeTests.swift b/apps/macos/Tests/OpenClawIPCTests/DashboardWindowSmokeTests.swift index c345db3c6567..833442cfa2c0 100644 --- a/apps/macos/Tests/OpenClawIPCTests/DashboardWindowSmokeTests.swift +++ b/apps/macos/Tests/OpenClawIPCTests/DashboardWindowSmokeTests.swift @@ -92,12 +92,14 @@ struct DashboardWindowSmokeTests { @Test func `dashboard window controller shows and closes`() throws { let url = try #require(URL(string: "http://127.0.0.1:18789/control/#token=device-token")) + let windowAutosaveName = "OpenClawDashboardWindow-Test-\(UUID().uuidString)" let controller = DashboardWindowController( url: url, auth: DashboardWindowAuth( gatewayUrl: "ws://127.0.0.1:18789/control/", token: "device-token", - password: nil)) + password: nil), + windowAutosaveName: windowAutosaveName) controller.show() #expect(controller.window?.styleMask.contains(.titled) == true) #expect(controller.window?.styleMask.contains(.closable) == true) @@ -115,7 +117,7 @@ struct DashboardWindowSmokeTests { #expect(controller.window?.toolbar?.isVisible == true) #expect((controller.window?.frame.width ?? 0) >= DashboardWindowLayout.windowMinSize.width) #expect((controller.window?.frame.height ?? 0) >= DashboardWindowLayout.windowMinSize.height) - #expect(controller.window?.frameAutosaveName == DashboardWindowLayout.windowFrameAutosaveName) + #expect(controller.window?.frameAutosaveName == windowAutosaveName) controller.closeDashboard() }