@@ -8,8 +8,9 @@ const path = require('path')
8
8
const suiTestClientPath = require . resolve ( '@s-ui/test/bin/sui-test-browser' )
9
9
10
10
program
11
- . option ( '-C, --ci' , 'Run components tests in CLI, headless mode [deprecated]' )
12
- . option ( '-H, --headless' , 'Run components tests in CLI, headless mode' )
11
+ . option ( '-C, --ci' , 'Run components tests in CI, headless mode [deprecated]' )
12
+ . option ( '-H, --headless' , 'Run components tests in CI, headless mode' )
13
+ . option ( '--headless-no-sandbox' , 'Run components tests in CI, headless mode without sandbox' )
13
14
. option ( '-W, --watch' , 'Watch mode' )
14
15
. option ( '-T, --timeout <timeout>' , 'Timeout' )
15
16
. option ( '--coverage' , 'Create coverage' , false )
@@ -18,13 +19,14 @@ program
18
19
console . log ( ' Examples:' )
19
20
console . log ( '' )
20
21
console . log ( ' $ sui-studio test --headless' )
22
+ console . log ( ' $ sui-studio test --headless-no-sandbox' )
21
23
console . log ( ' $ sui-studio test --headless --watch' )
22
24
console . log ( ' $ sui-studio test --help' )
23
25
console . log ( '' )
24
26
} )
25
27
. parse ( process . argv )
26
28
27
- const { coverage, coverageInline, watch, ci, headless, timeout} = program . opts ( )
29
+ const { coverage, coverageInline, watch, ci, headless, headlessNoSandbox , timeout} = program . opts ( )
28
30
29
31
const relPath = path . relative (
30
32
process . cwd ( ) ,
@@ -44,6 +46,7 @@ const run = async () => {
44
46
watch && '--watch' ,
45
47
ci && '--ci' ,
46
48
headless && '--headless' ,
49
+ headlessNoSandbox && '--headless-no-sandbox' ,
47
50
timeout && `-T ${ timeout } `
48
51
] . filter ( Boolean ) ,
49
52
{
0 commit comments