|
@@ -49,7 +49,7 @@ describe('Application life cycle test', function () {
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.get('https://' + app.fqdn + '/login');
|
|
return browser.get('https://' + app.fqdn + '/login');
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return browser.sleep(5000); // takes some time for username to be visible
|
|
|
|
|
|
+ return browser.sleep(10000); // takes some time for username to be visible
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.wait(until.elementLocated(by.id('username')), TEST_TIMEOUT);
|
|
return browser.wait(until.elementLocated(by.id('username')), TEST_TIMEOUT);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
@@ -69,7 +69,7 @@ describe('Application life cycle test', function () {
|
|
browser.get('https://' + app.fqdn + '/admin/emailers/local').then(function () {
|
|
browser.get('https://' + app.fqdn + '/admin/emailers/local').then(function () {
|
|
return browser.wait(until.elementLocated(by.id('host')), TEST_TIMEOUT);
|
|
return browser.wait(until.elementLocated(by.id('host')), TEST_TIMEOUT);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return browser.sleep(5000);
|
|
|
|
|
|
+ return browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.findElement(by.id('host')).getAttribute('value');
|
|
return browser.findElement(by.id('host')).getAttribute('value');
|
|
}).then(function (val) {
|
|
}).then(function (val) {
|
|
@@ -80,20 +80,20 @@ describe('Application life cycle test', function () {
|
|
|
|
|
|
function restartForum(done) {
|
|
function restartForum(done) {
|
|
browser.get('https://' + app.fqdn + '/admin').then(function () {
|
|
browser.get('https://' + app.fqdn + '/admin').then(function () {
|
|
- return browser.sleep(3000);
|
|
|
|
|
|
+ return browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.findElement(by.xpath('//button[text()="Restart"]')).click();
|
|
return browser.findElement(by.xpath('//button[text()="Restart"]')).click();
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return browser.sleep(3000);
|
|
|
|
|
|
+ return browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.findElement(by.xpath('//button[text()="Confirm"]')).click();
|
|
return browser.findElement(by.xpath('//button[text()="Confirm"]')).click();
|
|
}).then(function () {
|
|
}).then(function () {
|
|
console.log('Waiting for forum to restart');
|
|
console.log('Waiting for forum to restart');
|
|
- return browser.sleep(40000); // wait 30secs for reload
|
|
|
|
|
|
+ return browser.sleep(10000); // wait 30secs for reload
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.get('https://' + app.fqdn + '/admin');
|
|
return browser.get('https://' + app.fqdn + '/admin');
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return browser.sleep(3000);
|
|
|
|
|
|
+ return browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.wait(until.elementLocated(by.xpath('//h1[text()="Dashboard"]')), TEST_TIMEOUT);
|
|
return browser.wait(until.elementLocated(by.xpath('//h1[text()="Dashboard"]')), TEST_TIMEOUT);
|
|
}).then(function () { done(); });
|
|
}).then(function () { done(); });
|
|
@@ -145,23 +145,23 @@ describe('Application life cycle test', function () {
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.findElement(by.xpath('//a[text()="Change Picture"]')).click();
|
|
return browser.findElement(by.xpath('//a[text()="Change Picture"]')).click();
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return browser.sleep(4000);
|
|
|
|
|
|
+ return browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.findElement(by.xpath('//button[@data-action="upload"]')).click();
|
|
return browser.findElement(by.xpath('//button[@data-action="upload"]')).click();
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return browser.sleep(4000);
|
|
|
|
|
|
+ return browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.findElement(by.xpath('//input[@type="file"]')).sendKeys(path.resolve(__dirname, '../logo.png'));
|
|
return browser.findElement(by.xpath('//input[@type="file"]')).sendKeys(path.resolve(__dirname, '../logo.png'));
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- browser.sleep(3000);
|
|
|
|
|
|
+ browser.sleep(10000);
|
|
}).then(function () { // upload it
|
|
}).then(function () { // upload it
|
|
return browser.findElement(by.id('fileUploadSubmitBtn')).click();
|
|
return browser.findElement(by.id('fileUploadSubmitBtn')).click();
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- browser.sleep(3000);
|
|
|
|
|
|
+ browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.findElement(by.xpath('//button[text()="Crop and upload"]')).click();
|
|
return browser.findElement(by.xpath('//button[text()="Crop and upload"]')).click();
|
|
}).then(function () {
|
|
}).then(function () {
|
|
- return browser.sleep(3000);
|
|
|
|
|
|
+ return browser.sleep(10000);
|
|
}).then(function () {
|
|
}).then(function () {
|
|
done();
|
|
done();
|
|
});
|
|
});
|