increase wait time for python install location (#16784)

This commit is contained in:
Lucy Zhang
2021-08-16 10:58:07 -07:00
committed by GitHub
parent 560a8b7c9b
commit 6014b17d52

View File

@@ -25,11 +25,11 @@ export class ConfigurePythonDialog extends Dialog {
const newPythonInstallation = `${dialogPageInView} input[aria-label="New Python installation"]`;
await this.code.waitAndClick(newPythonInstallation);
// Wait for the python install location to be loaded before clicking the next button.
// Wait up to 1 minute for the python install location to be loaded before clicking the next button.
// There may be a timing issue where the smoke test attempts to go to the next page before
// the contents are loaded, causing the test to fail.
const pythonInstallLocationDropdownValue = `${dialogPageInView} option[value*="/azuredatastudio-python (Default)"]`;
await this.code.waitForElement(pythonInstallLocationDropdownValue);
await this.code.waitForElement(pythonInstallLocationDropdownValue, undefined, 600);
const loadingSpinner = `${dialogPageInView} .modelview-loadingComponent-content-loading`;
await this.code.waitForElementGone(loadingSpinner);