提交 ea8d5a4b 编写于 作者: R Ramya Achutha Rao

Fix smoke tests for extension search box

上级 38eca13f
......@@ -6,7 +6,7 @@
import { Viewlet } from '../workbench/viewlet';
import { Code } from '../../vscode/code';
const SEARCH_BOX = 'div.extensions-viewlet[id="workbench.view.extensions"] input.search-box';
const SEARCH_BOX = 'div.extensions-viewlet[id="workbench.view.extensions"] .monaco-editor textarea';
export class Extensions extends Viewlet {
......@@ -27,7 +27,7 @@ export class Extensions extends Viewlet {
async searchForExtension(name: string): Promise<any> {
await this.code.waitAndClick(SEARCH_BOX);
await this.code.waitForActiveElement(SEARCH_BOX);
await this.code.waitForSetValue(SEARCH_BOX, `name:"${name}"`);
await this.code.waitForTypeInEditor(SEARCH_BOX, `name:"${name}"`);
}
async installExtension(name: string): Promise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册