File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
test/smoke/src/areas/terminal Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 3
3
*--------------------------------------------------------------------------------------------*/
4
4
5
5
import minimist = require( 'minimist' ) ;
6
- import { Application } from '../../../../automation' ;
6
+ import * as path from 'path' ;
7
+ import { Application , Quality } from '../../../../automation' ;
7
8
import { afterSuite , beforeSuite } from '../../utils' ;
8
9
9
10
export function setup ( opts : minimist . ParsedArgs ) {
@@ -18,5 +19,23 @@ export function setup(opts: minimist.ParsedArgs) {
18
19
await app . workbench . terminal . runCommand ( 'ls' ) ;
19
20
await app . workbench . terminal . waitForTerminalText ( lines => lines . some ( l => l . includes ( 'app.js' ) ) ) ;
20
21
} ) ;
22
+
23
+ it ( 'shows terminal and runs cli command' , async function ( ) {
24
+ const app = this . app as Application ;
25
+
26
+ if ( app . quality !== Quality . Dev ) {
27
+ this . skip ( ) ;
28
+ }
29
+
30
+ const rootPath = process . env [ 'VSCODE_REPOSITORY' ] ;
31
+ if ( ! rootPath ) {
32
+ throw new Error ( 'VSCODE_REPOSITORY env variable not found' ) ;
33
+ }
34
+
35
+ const cliPath = path . join ( rootPath , 'out' , 'server-cli.js' ) ;
36
+
37
+ await app . workbench . terminal . runCommand ( `node ${ cliPath } app.js` ) ;
38
+ await app . workbench . editors . waitForActiveTab ( 'app.js' ) ;
39
+ } ) ;
21
40
} ) ;
22
41
}
You can’t perform that action at this time.
0 commit comments