Path: blob/main/test/smoke/src/areas/extensions/extensions.test.ts
3520 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { Application, Logger } from '../../../../automation';6import { installAllHandlers } from '../../utils';78export function setup(logger: Logger) {9describe('Extensions', () => {1011// Shared before/after handling12installAllHandlers(logger, opts => {13opts.verbose = true; // enable verbose logging for tracing14opts.snapshots = true; // enable network tab in devtools for tracing since we install an extension15return opts;16});1718it('install and enable vscode-smoketest-check extension', async function () {19const app = this.app as Application;2021await app.workbench.extensions.installExtension('ms-vscode.vscode-smoketest-check', true);2223// Close extension editor because keybindings dispatch is not working when web views are opened and focused24// https://github.com/microsoft/vscode/issues/11027625await app.workbench.extensions.closeExtension('vscode-smoketest-check');2627await app.workbench.quickaccess.runCommand('Smoke Test Check');28});29});30}313233