mirror of
https://github.com/Microsoft/vscode
synced 2024-10-01 08:50:48 +00:00
parent
5c3082d584
commit
5b8fe0ed3e
|
@ -41,7 +41,12 @@ export class Extensions extends Viewlet {
|
|||
}
|
||||
|
||||
async closeExtension(title: string): Promise<any> {
|
||||
await this.code.waitAndClick(`.tabs-container div.tab[aria-label="Extension: ${title}"] div.tab-actions a.action-label.codicon.codicon-close`);
|
||||
try {
|
||||
await this.code.waitAndClick(`.tabs-container div.tab[aria-label="Extension: ${title}, preview"] div.tab-actions a.action-label.codicon.codicon-close`);
|
||||
} catch (e) {
|
||||
this.code.logger.log(`Extension '${title}' not opened as preview. Trying without 'preview'.`);
|
||||
await this.code.waitAndClick(`.tabs-container div.tab[aria-label="Extension: ${title}"] div.tab-actions a.action-label.codicon.codicon-close`);
|
||||
}
|
||||
}
|
||||
|
||||
async installExtension(id: string, waitUntilEnabled: boolean): Promise<void> {
|
||||
|
|
|
@ -12,7 +12,7 @@ export function setup(logger: Logger) {
|
|||
// Shared before/after handling
|
||||
installAllHandlers(logger);
|
||||
|
||||
it.skip('install and enable vscode-smoketest-check extension', async function () {
|
||||
it('install and enable vscode-smoketest-check extension', async function () {
|
||||
const app = this.app as Application;
|
||||
|
||||
await app.workbench.extensions.installExtension('ms-vscode.vscode-smoketest-check', true);
|
||||
|
|
Loading…
Reference in a new issue