Skip to content
Snippets Groups Projects
Commit be521691 authored by srosse's avatar srosse
Browse files

no-jira: remove token of path, hardened selenium test for firefox

parent 0e654e52
No related branches found
No related tags found
No related merge requests found
......@@ -227,6 +227,13 @@ public class AuthenticatedDispatcher implements Dispatcher {
log.error("Unsupported encoding", e);
}
if(restPart == null) {
return null;
}
int index = restPart.indexOf(";jsessionid=");
if(index >= 0) {
restPart = restPart.substring(0, index);
}
if(restPart.startsWith("repo/go")) {
return convertJumpInURL(ureq);
}
......
......@@ -78,11 +78,7 @@ public class LoginPage {
}
public void assertLoggedIn(UserVO user) {
WebElement username = browser.findElement(usernameFooterBy);
Assert.assertNotNull(username);
Assert.assertTrue(username.isDisplayed());
String name = username.getText();
Assert.assertTrue(name.contains(user.getLastName()));
assertLoggedInByLastName(user.getLastName());
}
public void assertLoggedInByLastName(String lastName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment