Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/smoke/src/areas/extensions/extensions.test.ts
3520 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { Application, Logger } from '../../../../automation';
7
import { installAllHandlers } from '../../utils';
8
9
export function setup(logger: Logger) {
10
describe('Extensions', () => {
11
12
// Shared before/after handling
13
installAllHandlers(logger, opts => {
14
opts.verbose = true; // enable verbose logging for tracing
15
opts.snapshots = true; // enable network tab in devtools for tracing since we install an extension
16
return opts;
17
});
18
19
it('install and enable vscode-smoketest-check extension', async function () {
20
const app = this.app as Application;
21
22
await app.workbench.extensions.installExtension('ms-vscode.vscode-smoketest-check', true);
23
24
// Close extension editor because keybindings dispatch is not working when web views are opened and focused
25
// https://github.com/microsoft/vscode/issues/110276
26
await app.workbench.extensions.closeExtension('vscode-smoketest-check');
27
28
await app.workbench.quickaccess.runCommand('Smoke Test Check');
29
});
30
});
31
}
32
33