From 1ec42a082eed1a9bf6a4d4016e787ee92f121387 Mon Sep 17 00:00:00 2001 From: Lucy Zhang Date: Wed, 13 Jan 2021 10:51:22 -0800 Subject: [PATCH] click first element in quick input result list (#13954) --- test/automation/src/sql/notebook.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/automation/src/sql/notebook.ts b/test/automation/src/sql/notebook.ts index c4fe7156ff..30f08fdf62 100644 --- a/test/automation/src/sql/notebook.ts +++ b/test/automation/src/sql/notebook.ts @@ -22,8 +22,7 @@ export class Notebook { async openFile(fileName: string): Promise { 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'); }