mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-28 07:57:25 +00:00
Update tests
This commit is contained in:
@@ -29,7 +29,7 @@ describe('Application life cycle test', function () {
|
|||||||
this.timeout(0);
|
this.timeout(0);
|
||||||
|
|
||||||
const LOCATION = 'test';
|
const LOCATION = 'test';
|
||||||
const TEST_TIMEOUT = 30000;
|
const TEST_TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 30000;
|
||||||
const BUCKET = 'cloudrontestbucket';
|
const BUCKET = 'cloudrontestbucket';
|
||||||
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
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"]'));
|
const button = await browser.findElement(By.xpath('//button[@id="sign-out"]'));
|
||||||
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
||||||
await button.click();
|
await button.click();
|
||||||
|
await browser.sleep(10000); // needed!
|
||||||
await waitForElement(By.xpath('//*[@id="accessKey"] | //button[contains(., "Cloudron")]'));
|
await waitForElement(By.xpath('//*[@id="accessKey"] | //button[contains(., "Cloudron")]'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user