From 7b8af7a5ab795af04a3c2af7f449de7249639a15 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Wed, 13 Mar 2019 11:56:07 +0100 Subject: [PATCH] adopt latest smoketest changes --- test/smoke/src/areas/git/git.test.ts | 8 ++++---- test/smoke/src/main.ts | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/test/smoke/src/areas/git/git.test.ts b/test/smoke/src/areas/git/git.test.ts index 25b2e3be237..d04677eafbc 100644 --- a/test/smoke/src/areas/git/git.test.ts +++ b/test/smoke/src/areas/git/git.test.ts @@ -27,13 +27,13 @@ export function setup() { await app.workbench.editor.waitForTypeInEditor('app.js', '.foo{}'); await app.workbench.editors.saveOpenedFile(); - await app.workbench.quickopen.openFile('index.jade'); - await app.workbench.editor.waitForTypeInEditor('index.jade', 'hello world'); + await app.workbench.quickopen.openFile('index.pug'); + await app.workbench.editor.waitForTypeInEditor('index.pug', 'hello world'); await app.workbench.editors.saveOpenedFile(); await app.workbench.scm.refreshSCMViewlet(); await app.workbench.scm.waitForChange('app.js', 'Modified'); - await app.workbench.scm.waitForChange('index.jade', 'Modified'); + await app.workbench.scm.waitForChange('index.pug', 'Modified'); }); it('opens diff editor', async function () { @@ -66,7 +66,7 @@ export function setup() { await app.code.waitForTextContent(SYNC_STATUSBAR, ' 0↓ 1↑'); await app.workbench.quickopen.runCommand('Git: Stage All Changes'); - await app.workbench.scm.waitForChange('index.jade', 'Index Modified'); + await app.workbench.scm.waitForChange('index.pug', 'Index Modified'); await app.workbench.scm.commit('second commit'); await app.code.waitForTextContent(SYNC_STATUSBAR, ' 0↓ 2↑'); diff --git a/test/smoke/src/main.ts b/test/smoke/src/main.ts index d27462adff7..04b49384dc6 100644 --- a/test/smoke/src/main.ts +++ b/test/smoke/src/main.ts @@ -30,6 +30,11 @@ import { setup as setupDataLocalizationTests } from './areas/workbench/localizat import { setup as setupLaunchTests } from './areas/workbench/launch.test'; import { MultiLogger, Logger, ConsoleLogger, FileLogger } from './logger'; +if (!/^v10/.test(process.version)) { + console.error('Error: Smoketest must be run using Node 10. Currently running', process.version); + process.exit(1); +} + const tmpDir = tmp.dirSync({ prefix: 't' }) as { name: string; removeCallback: Function; }; const testDataPath = tmpDir.name; process.once('exit', () => rimraf.sync(testDataPath));