click first element in quick input result list (#13954)

This commit is contained in:
Lucy Zhang
2021-01-13 10:51:22 -08:00
committed by GitHub
parent bcae0d2b02
commit 1ec42a082e

View File

@@ -22,8 +22,7 @@ export class Notebook {
async openFile(fileName: string): Promise<void> {
await this.quickAccess.openQuickAccess(fileName);
await this.quickInput.waitForQuickInputElements(names => names[0] === fileName);
await this.code.waitForActiveElement('.quick-input-widget .quick-input-box input');
await this.code.dispatchKeybinding('enter');
await this.code.waitAndClick('.quick-input-widget .quick-input-list .monaco-list-row');
await this.editors.waitForActiveTab(fileName);
await this.code.waitForElement('.notebookEditor');
}