From 95323f4ac30f0b1c0dc96470355f98dfd695e2ed Mon Sep 17 00:00:00 2001 From: Rupal Mahajan Date: Thu, 21 Mar 2024 15:07:10 -0700 Subject: [PATCH] Fix timeout error (#68) Signed-off-by: Rupal Mahajan --- src/download-helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/download-helpers.js b/src/download-helpers.js index 6a1bf0b..3de4dcd 100644 --- a/src/download-helpers.js +++ b/src/download-helpers.js @@ -257,7 +257,7 @@ const samlAuthentication = async (page, url, username, password, tenant, multite await page.type('[name="identifier"]', username); await page.type('[name="credentials.passcode"]', password); await page.click('[value="Sign in"]') - await page.waitForTimeout(timeout); + await page.waitForTimeout(30000); const tenantSelection = await page.$('Select your tenant'); try { if (multitenancy === true && tenantSelection !== null) { @@ -292,7 +292,7 @@ const cognitoAuthentication = async (page, overridePage, url, username, password await page.type('[name="username"]', username); await page.type('[name="password"]', password); await page.click('[name="signInSubmitButton"]'); - await page.waitForTimeout(timeout); + await page.waitForTimeout(30000); const tenantSelection = await page.$('Select your tenant'); try { if (multitenancy === true && tenantSelection !== null) {