mirror of
https://github.com/Microsoft/vscode
synced 2024-08-26 20:39:37 +00:00
enable extension tests in web
This commit is contained in:
parent
4e6d9ce2b7
commit
a9ccd48a1f
|
@ -15,7 +15,9 @@ export function setup() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await app.workbench.settingsEditor.addUserSetting('webview.experimental.useIframes', 'true');
|
if (!app.web) {
|
||||||
|
await app.workbench.settingsEditor.addUserSetting('webview.experimental.useIframes', 'true');
|
||||||
|
}
|
||||||
|
|
||||||
await app.workbench.extensions.openExtensionsViewlet();
|
await app.workbench.extensions.openExtensionsViewlet();
|
||||||
|
|
||||||
|
@ -27,24 +29,12 @@ export function setup() {
|
||||||
await app.workbench.statusbar.waitForStatusbarText('smoke test', 'VS Code Smoke Test Check');
|
await app.workbench.statusbar.waitForStatusbarText('smoke test', 'VS Code Smoke Test Check');
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`extension installed by server cli`, async function () {
|
after(async function () {
|
||||||
const app = this.app as Application;
|
const app = this.app as Application;
|
||||||
|
if (app.web) {
|
||||||
if (app.quality === Quality.Dev || !app.web) {
|
|
||||||
this.skip();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await app.workbench.extensions.openExtensionsViewlet();
|
|
||||||
|
|
||||||
await app.workbench.extensions.openExtension('github.vscode-pull-request-github');
|
|
||||||
|
|
||||||
await this.code.waitForElement(`.extension-editor .monaco-action-bar .action-item:not(.disabled) .extension-action.uninstall`);
|
|
||||||
await this.code.waitForElement(`.extension-editor .monaco-action-bar .action-item:not(.disabled) .extension-action[title="Disable this extension"]`);
|
|
||||||
});
|
|
||||||
|
|
||||||
after(async function () {
|
|
||||||
const app = this.app as Application;
|
|
||||||
await app.workbench.settingsEditor.clearUserSettings();
|
await app.workbench.settingsEditor.clearUserSettings();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -315,7 +315,7 @@ describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => {
|
||||||
setupDataLanguagesTests();
|
setupDataLanguagesTests();
|
||||||
setupDataEditorTests();
|
setupDataEditorTests();
|
||||||
setupDataStatusbarTests(!!opts.web);
|
setupDataStatusbarTests(!!opts.web);
|
||||||
if (!opts.web) { setupDataExtensionTests(); }
|
setupDataExtensionTests();
|
||||||
if (!opts.web) { setupDataMultirootTests(); }
|
if (!opts.web) { setupDataMultirootTests(); }
|
||||||
if (!opts.web) { setupDataLocalizationTests(); }
|
if (!opts.web) { setupDataLocalizationTests(); }
|
||||||
if (!opts.web) { setupLaunchTests(); }
|
if (!opts.web) { setupLaunchTests(); }
|
||||||
|
|
Loading…
Reference in a new issue