|
@@ -70,6 +70,10 @@ 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.findElement(by.xpath('//button[text()="Restart"]')).click();
|
|
return browser.findElement(by.xpath('//button[text()="Restart"]')).click();
|
|
|
|
+ }).then(function () {
|
|
|
|
+ return browser.sleep(3000);
|
|
|
|
+ }).then(function () {
|
|
|
|
+ return browser.findElement(by.xpath('//button[text()="OK"]')).click();
|
|
}).then(function () {
|
|
}).then(function () {
|
|
return browser.sleep(10000); // wait 10secs for reload
|
|
return browser.sleep(10000); // wait 10secs for reload
|
|
}).then(function () {
|
|
}).then(function () {
|