From 0c32be81392e5789626d0e055d2de96d6001a57a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 4 Mar 2024 11:33:45 +0100 Subject: [PATCH] Update tests --- test/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 12bf679..b0129b4 100644 --- a/test/test.js +++ b/test/test.js @@ -29,7 +29,7 @@ describe('Application life cycle test', function () { this.timeout(0); const LOCATION = 'test'; - const TEST_TIMEOUT = 30000; + const TEST_TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 30000; const BUCKET = 'cloudrontestbucket'; const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' }; @@ -107,6 +107,7 @@ describe('Application life cycle test', function () { const button = await browser.findElement(By.xpath('//button[@id="sign-out"]')); await browser.executeScript('arguments[0].scrollIntoView(false)', button); await button.click(); + await browser.sleep(10000); // needed! await waitForElement(By.xpath('//*[@id="accessKey"] | //button[contains(., "Cloudron")]')); }