File tree 2 files changed +21
-2
lines changed
packages/compass-e2e-tests/installers
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,7 @@ functions:
674
674
export COMPASS_E2E_DISABLE_CLIPBOARD_USAGE="true"
675
675
fi
676
676
677
- npm run --workspace compass-e2e-tests smoketest
677
+ npm run --unsafe-perm -- workspace compass-e2e-tests smoketest
678
678
679
679
test-web-sandbox :
680
680
- 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' ;
2
3
import type { InstalledAppInfo , Package } from './types' ;
3
4
import { execute } from './helpers' ;
4
5
@@ -23,8 +24,26 @@ export async function installMacDMG(
23
24
await execute ( 'hdiutil' , [ 'detach' , `/Volumes/${ appName } ` ] ) ;
24
25
}
25
26
27
+ // get debug output so we can see that it copied everything with the correct
28
+ // permissions
26
29
await execute ( 'ls' , [ '-laR' , `/Applications/${ appName } .app` ] ) ;
27
30
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
+
28
47
return Promise . resolve ( {
29
48
appName,
30
49
appPath : `/Applications/${ appName } .app` ,
You can’t perform that action at this time.
0 commit comments