File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
packages/compass-e2e-tests/installers Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- import { existsSync } from 'fs' ;
1+ import path from 'path' ;
2+ import { existsSync , promises as fs } from 'fs' ;
23import type { InstalledAppInfo , Package } from './types' ;
34import { 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` ,
You can’t perform that action at this time.
0 commit comments