mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Pass extensions-dir as VS Code arg, instead of Chrome Driver one.
This commit is contained in:
parent
1f1e1ec7c9
commit
fcf8b2942d
|
@ -24,8 +24,13 @@ export function testDataMigration() {
|
|||
return await common.removeDirectory(EXTENSIONS_DIR);
|
||||
});
|
||||
|
||||
function setupSpectron(context: Mocha.ITestCallbackContext, appPath: string, workspace?: string[]): void {
|
||||
app = new SpectronApplication(appPath, context.test.fullTitle(), context.test.currentRetry(), workspace, [`--user-data-dir=${USER_DIR}`, `--extensions-dir=${EXTENSIONS_DIR}`]);
|
||||
function setupSpectron(context: Mocha.ITestCallbackContext, appPath: string, args?: string[]): void {
|
||||
if (!args) {
|
||||
args = [];
|
||||
}
|
||||
args.push(`--extensions-dir=${EXTENSIONS_DIR}`);
|
||||
|
||||
app = new SpectronApplication(appPath, context.test.fullTitle(), context.test.currentRetry(), args, [`--user-data-dir=${USER_DIR}`]);
|
||||
common = new CommonActions(app);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue