From 4ab2d3f8c0aa74f9afe8be0b557029f22ca5cc15 Mon Sep 17 00:00:00 2001 From: Lucy Zhang Date: Thu, 16 Dec 2021 05:55:57 -0800 Subject: [PATCH] add logging (#17940) --- test/automation/src/sql/configurePythonDialog.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/automation/src/sql/configurePythonDialog.ts b/test/automation/src/sql/configurePythonDialog.ts index 6c502ff7c1..bc09dc3977 100644 --- a/test/automation/src/sql/configurePythonDialog.ts +++ b/test/automation/src/sql/configurePythonDialog.ts @@ -25,7 +25,12 @@ export class ConfigurePythonDialog extends Dialog { async waitForPageOneLoaded(): Promise { // Wait up to 1 minute for the python install location to be loaded. const pythonInstallLocationDropdownValue = `${ConfigurePythonDialog.dialogPageInView} option[value*="/azuredatastudio-python (Default)"]`; - await this.code.waitForElement(pythonInstallLocationDropdownValue, undefined, 600); + try { + await this.code.waitForElement(pythonInstallLocationDropdownValue, undefined, 600); + } finally { + // log the select box to help debug when the default python install location fails to load + await this.code.waitForElement('select[class="monaco-select-box"][aria-label="Python Install Location"]'); + } const loadingSpinner = `${ConfigurePythonDialog.dialogPageInView} .modelview-loadingComponent-content-loading`; await this.code.waitForElementGone(loadingSpinner);