mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
Merge pull request #10 from jenkinsci-cert/SECURITY-166
[SECURITY-166] Make UI tests work across Jenkins versions
This commit is contained in:
commit
3e40c6fa00
1 file changed
+2
-1
@@ -57,7 +57,8 @@ public class HudsonPrivateSecurityRealm2Test {
|
||||
signup.enterEmail("alice@nowhere.com");
|
||||
HtmlPage success = signup.submit(rule);
|
||||
assertThat(success.getElementById("main-panel").getTextContent(), containsString("Success"));
|
||||
assertThat(success.getElementById("login-field").getTextContent(), containsString("Alice User"));
|
||||
assertThat(success.getAnchorByHref("/jenkins/user/alice").getTextContent(), containsString("Alice User"));
|
||||
|
||||
|
||||
assertEquals("Alice User", securityRealm.getUser("alice").getDisplayName());
|
||||
|
||||
|
||||
Reference in new issue
Block a user