diff --git a/extension/src/test/e2e/wdio.conf.ts b/extension/src/test/e2e/wdio.conf.ts index e334c47ce4..a9c14490a6 100644 --- a/extension/src/test/e2e/wdio.conf.ts +++ b/extension/src/test/e2e/wdio.conf.ts @@ -5,6 +5,9 @@ import { getVenvBinPath } from '../../python/path' import { Logger } from '../../common/logger' const screenshotDir = join(__dirname, 'screenshots') +const logsDir = join(__dirname, 'logs') +const extensionPath = resolve(__dirname, '..', '..', '..') +const dvcDemoPath = resolve(extensionPath, '..', 'demo') export const config: Options.Testrunner = { after: async function () { @@ -30,18 +33,14 @@ export const config: Options.Testrunner = { capabilities: [ { browserName: 'vscode', - browserVersion: 'stable', + browserVersion: 'insiders', 'wdio:vscodeOptions': { - extensionPath: resolve(__dirname, '..', '..', '..'), + extensionPath, userSettings: { - 'dvc.pythonPath': getVenvBinPath( - resolve(__dirname, '..', '..', '..', '..', 'demo'), - '.env', - 'python' - ) + 'dvc.pythonPath': getVenvBinPath(dvcDemoPath, '.env', 'python') }, verboseLogging: false, - workspacePath: resolve(__dirname, '..', '..', '..', '..', 'demo') + workspacePath: dvcDemoPath } } ], @@ -56,7 +55,7 @@ export const config: Options.Testrunner = { timeout: 60000, ui: 'bdd' }, - outputDir: join(__dirname, 'logs'), + outputDir: logsDir, reporters: ['spec'], services: ['vscode'], specs: ['./src/test/e2e/*.test.ts'],