Update tests

This commit is contained in:
Girish Ramakrishnan 2024-03-04 11:33:45 +01:00
parent fd04e1b784
commit 0c32be8139
1 changed files with 2 additions and 1 deletions

View File

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