Skip to content

Commit 53d549b

Browse files
committed
more fixes and debugging
1 parent ef9b20a commit 53d549b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.evergreen/functions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ functions:
674674
export COMPASS_E2E_DISABLE_CLIPBOARD_USAGE="true"
675675
fi
676676
677-
npm run --workspace compass-e2e-tests smoketest
677+
npm run --unsafe-perm --workspace compass-e2e-tests smoketest
678678
679679
test-web-sandbox:
680680
- command: shell.exec

packages/compass-e2e-tests/installers/mac-dmg.ts

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { existsSync } from 'fs';
1+
import path from 'path';
2+
import { existsSync, promises as fs } from 'fs';
23
import type { InstalledAppInfo, Package } from './types';
34
import { execute } from './helpers';
45

@@ -23,8 +24,26 @@ export async function installMacDMG(
2324
await execute('hdiutil', ['detach', `/Volumes/${appName}`]);
2425
}
2526

27+
// get debug output so we can see that it copied everything with the correct
28+
// permissions
2629
await execute('ls', ['-laR', `/Applications/${appName}.app`]);
2730

31+
// see if the executable will run without being quarantined or similar
32+
await execute(`/Applications/${appName}.app/Contents/MacOS/${appName}`, [
33+
'--version',
34+
]);
35+
36+
// see if the GUI works
37+
const logPath = path.resolve(__dirname, '..', '.log');
38+
await fs.mkdir(logPath);
39+
const screenshotPath = path.resolve(
40+
__dirname,
41+
'..',
42+
'.log',
43+
'screenshot.png'
44+
);
45+
await execute(`screencapture`, [screenshotPath]);
46+
2847
return Promise.resolve({
2948
appName,
3049
appPath: `/Applications/${appName}.app`,

0 commit comments

Comments
 (0)