fix the test failing

pull/5290/head
Martin Schoeler 9 years ago
parent 7b8a332093
commit f124efbb66
  1. 5
      tests/test-data/checks.js

@ -35,7 +35,7 @@ export function checkIfUserIsValid(username, email, password) {
browser.click('.submit > button');
mainContent.mainContent.waitForExist(5000);
}
} else if (!sideNav.accountBoxUserName.getText() === username) {
} else if (sideNav.accountBoxUserName.getText() !== username) {
//if the logged user is not the right one
console.log(' Wrong logged user. Changing user...');
sideNav.accountBoxUserName.waitForVisible(5000);
@ -45,6 +45,7 @@ export function checkIfUserIsValid(username, email, password) {
loginPage.open();
loginPage.login({email, password});
mainContent.mainContent.waitForExist(5000);
} else {
console.log(' User already logged');
}
@ -67,7 +68,7 @@ export function checkIfUserIsAdmin(username, email, password) {
browser.click('.submit > button');
mainContent.mainContent.waitForExist(5000);
}
} else if (!sideNav.accountBoxUserName.getText() === username) {
} else if (sideNav.accountBoxUserName.getText() !== username) {
//if the logged user is not the right one
console.log(' Wrong logged user. Changing user...');
sideNav.accountBoxUserName.waitForVisible(5000);

Loading…
Cancel
Save