From b46afde8182ff410e8a80cbb4042aa6e02a01392 Mon Sep 17 00:00:00 2001 From: Lucy Zhang Date: Fri, 11 Dec 2020 14:23:21 -0800 Subject: [PATCH] Log active element when notebook smoke test fails (#13724) * add error log for active element * fix active element selector * await isActiveElement call * call waitforactiveleement --- test/automation/src/sql/notebook.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/automation/src/sql/notebook.ts b/test/automation/src/sql/notebook.ts index dacecbcf86..e8923e35e4 100644 --- a/test/automation/src/sql/notebook.ts +++ b/test/automation/src/sql/notebook.ts @@ -22,6 +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.editors.waitForActiveTab(fileName); await this.code.waitForElement('.notebookEditor');