From 42b41dd01348522f9bd6978fafd2c2a15058d258 Mon Sep 17 00:00:00 2001 From: Dmitriy Vasyura Date: Sun, 11 Jan 2026 12:05:37 +0100 Subject: [PATCH] MacOS fix --- test/sanity/src/context.ts | 5 +++-- test/sanity/src/desktop.test.ts | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sanity/src/context.ts b/test/sanity/src/context.ts index a96aa070ce9..8189d359663 100644 --- a/test/sanity/src/context.ts +++ b/test/sanity/src/context.ts @@ -396,7 +396,7 @@ export class TestContext { /** * Prepares a macOS .app bundle for execution by removing the quarantine attribute. * @param bundleDir The directory containing the .app bundle. - * @returns The path to the VS Code executable. + * @returns The path to the VS Code Electron executable. */ public installMacApp(bundleDir: string): string { let appName: string; @@ -418,7 +418,8 @@ export class TestContext { this.runNoErrors('xattr', '-rd', 'com.apple.quarantine', appPath); this.log(`Removed quarantine attribute successfully`); - const entryPoint = path.join(appPath, 'Contents/Resources/app/bin/code'); + // Return the Electron binary for Playwright compatibility + const entryPoint = path.join(appPath, 'Contents/MacOS/Electron'); if (!fs.existsSync(entryPoint)) { this.error(`Desktop entry point does not exist: ${entryPoint}`); } diff --git a/test/sanity/src/desktop.test.ts b/test/sanity/src/desktop.test.ts index 1127f77e616..8a4cac1b102 100644 --- a/test/sanity/src/desktop.test.ts +++ b/test/sanity/src/desktop.test.ts @@ -179,7 +179,6 @@ export function setup(context: TestContext) { async function testDesktopApp(entryPoint: string) { const test = new UITest(context); const args = [ - '--remote-debugging-port=0', '--extensions-dir', test.extensionsDir, '--user-data-dir', test.userDataDir, test.workspaceDir