Commit 9addf09a authored by Administrator's avatar Administrator

Fixes the login token in PeopleWebTest

The login token was incorrectly set to "admin:admin" instead of
"admin:adminpass". This commit fixes this and sets the valid token
value.
parent e75d5730
......@@ -68,12 +68,12 @@ public class PeopleWebTest {
driver = new FirefoxDriver();
driver.get(baseUrl);
// Login as "admin:admin"
driver.manage().addCookie(new Cookie("token", "YWRtaW46YWRtaW4="));
// Driver will wait DEFAULT_WAIT_TIME if it doesn't find and element.
driver.manage().timeouts().implicitlyWait(DEFAULT_WAIT_TIME, TimeUnit.SECONDS);
// Login as "admin:adminpass"
driver.manage().addCookie(new Cookie("token", "YWRtaW46YWRtaW5wYXNz"));
mainPage = new MainPage(driver, baseUrl);
mainPage.navigateTo();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment