|
@@ -109,6 +109,9 @@ describe('Application life cycle test', function () {
|
|
|
return browser.wait(until.elementLocated(by.xpath('//ul[contains(@class, "installed")]//strong[text()="nodebb-plugin-beep"]')), TEST_TIMEOUT);
|
|
|
}).then(function () {
|
|
|
return browser.sleep(10000);
|
|
|
+ }).then(function () {
|
|
|
+ var button = browser.findElement(by.xpath('//li[@id="nodebb-plugin-beep"]//button[@data-action="toggleActive"]'));
|
|
|
+ return browser.executeScript('arguments[0].scrollIntoView(false)', button);
|
|
|
}).then(function () {
|
|
|
return browser.findElement(by.xpath('//li[@id="nodebb-plugin-beep"]//button[@data-action="toggleActive"]')).click(); // activate the plugin
|
|
|
}).then(function () {
|