MacOS fix

This commit is contained in:
Dmitriy Vasyura
2026-01-11 12:05:37 +01:00
parent 40df51f756
commit 42b41dd013
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -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}`);
}