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")]')); }