From 30e26d63a43a3fa7f8caf7c6b9830e9914297134 Mon Sep 17 00:00:00 2001 From: Lucy Zhang Date: Fri, 10 Sep 2021 09:44:35 -0400 Subject: [PATCH] Increase smoke test timeout and python installation timeout (#17035) * add screenshots * inc time * fix comment, remove screenshot * increase timeout only for python test * comment --- test/automation/src/sql/configurePythonDialog.ts | 2 +- test/smoke/src/sql/areas/notebook/notebook.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/automation/src/sql/configurePythonDialog.ts b/test/automation/src/sql/configurePythonDialog.ts index a0f4345ab2..6c502ff7c1 100644 --- a/test/automation/src/sql/configurePythonDialog.ts +++ b/test/automation/src/sql/configurePythonDialog.ts @@ -51,7 +51,7 @@ export class ConfigurePythonDialog extends Dialog { private async _waitForInstallationComplete(): Promise { const installationCompleteNotification = '.notifications-toasts div[aria-label="Notebook dependencies installation is complete, source: Notebook Core Extensions (Extension), notification"]'; - await this.code.waitForElement(installationCompleteNotification, undefined, 3000); // wait up to 5 minutes for python installation + await this.code.waitForElement(installationCompleteNotification, undefined, 6000); // wait up to 10 minutes for python installation } } diff --git a/test/smoke/src/sql/areas/notebook/notebook.test.ts b/test/smoke/src/sql/areas/notebook/notebook.test.ts index 06f695ff2f..45f1ae3452 100644 --- a/test/smoke/src/sql/areas/notebook/notebook.test.ts +++ b/test/smoke/src/sql/areas/notebook/notebook.test.ts @@ -56,6 +56,7 @@ export function setup() { // Python Notebooks it('can open new notebook, configure Python, and execute one cell', async function () { + this.timeout(600000); // set timeout to 10 minutes to ensure test does not timeout during python installation const app = this.app as Application; await app.workbench.sqlNotebook.newUntitledNotebook(); await app.workbench.sqlNotebook.addCell('code');