Skip to content

Commit

Permalink
Update Security3349Test.java
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 6, 2025
1 parent 770f5d9 commit 615e5a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/src/test/java/hudson/model/Security3349Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ public void usersCannotAccessOtherUsersViews() throws Exception {
assertEquals(403, adminViews.getWebResponse().getStatusCode());

HtmlPage adminUserPage = wc.goTo("user/admin/");
assertFalse(adminUserPage.getWebResponse().getContentAsString().contains("My Views"));
assertFalse(adminUserPage.getVisibleText().contains("My Views"));

HtmlPage userViews = wc.goTo("user/user/my-views/view/all/");
assertEquals(200, userViews.getWebResponse().getStatusCode());

HtmlPage userUserPage = wc.goTo("user/user/");
assertTrue(userUserPage.getWebResponse().getContentAsString().contains("My Views"));
assertTrue(userUserPage.getVisibleText().contains("My Views"));

wc.login("admin");

Expand All @@ -73,7 +73,7 @@ public void usersCannotAccessOtherUsersViews() throws Exception {
adminViews = wc.goTo("user/admin/my-views/view/all/");
assertEquals(200, adminViews.getWebResponse().getStatusCode());
adminUserPage = wc.goTo("user/admin/");
assertTrue(adminUserPage.getWebResponse().getContentAsString().contains("My Views"));
assertTrue(adminUserPage.getVisibleText().contains("My Views"));

}
}
Expand Down

0 comments on commit 615e5a0

Please sign in to comment.