Log active element when notebook smoke test fails (#13724)

* add error log for active element

* fix active element selector

* await isActiveElement call

* call waitforactiveleement
This commit is contained in:
Lucy Zhang
2020-12-11 14:23:21 -08:00
committed by GitHub
parent a926f87965
commit b46afde818

View File

@@ -22,6 +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.editors.waitForActiveTab(fileName);
await this.code.waitForElement('.notebookEditor');