Fixing e2e public tests

stable
Alejandro Alonso 2015-10-29 12:39:02 +01:00
parent 4f9106ef08
commit a9f1dc4852
2 changed files with 4 additions and 4 deletions

View File

@ -19,6 +19,9 @@ describe('Public', async function(){
await utils.notifications.success.open();
await utils.notifications.success.close();
//We need this click on firefox, probably the mouse is in a previous input
$('body').click()
return utils.common.logout();
});

View File

@ -118,13 +118,10 @@ common.logout = function() {
.mouseMove($('div[tg-dropdown-user]'))
.perform();
$$('.navbar-dropdown li a')
.last()
.click();
common.link($$('.navbar-dropdown li a').last())
return browser.driver.wait(async function() {
let url = await browser.driver.getCurrentUrl();
return url === browser.params.glob.host + 'login';
}, 10000);
};