(home: string)
| 53 | const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); |
| 54 | |
| 55 | const launchDesktop = async (home: string): Promise<ElectronApplication> => |
| 56 | _electron.launch({ |
| 57 | executablePath: electronBinary, |
| 58 | args: [appDir], |
| 59 | cwd: appDir, |
| 60 | env: { ...process.env, HOME: home }, |
| 61 | timeout: 120_000, |
| 62 | }); |
| 63 | |
| 64 | // Draw the native macOS traffic lights at the app's configured |
| 65 | // trafficLightPosition. Faithful geometry: 12px buttons, 20px center spacing, |