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 33 *--------------------------------------------------------------------------------------------*/
44
55import minimist = require( 'minimist' ) ;
6- import { Application } from '../../../../automation' ;
6+ import * as path from 'path' ;
7+ import { Application , Quality } from '../../../../automation' ;
78import { afterSuite , beforeSuite } from '../../utils' ;
89
910export function setup ( opts : minimist . ParsedArgs ) {
@@ -18,5 +19,23 @@ export function setup(opts: minimist.ParsedArgs) {
1819 await app . workbench . terminal . runCommand ( 'ls' ) ;
1920 await app . workbench . terminal . waitForTerminalText ( lines => lines . some ( l => l . includes ( 'app.js' ) ) ) ;
2021 } ) ;
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+ } ) ;
2140 } ) ;
2241}
You can’t perform that action at this time.
0 commit comments