コード例 #1
0
 protected void deleteTestUser(String username) throws Exception {
   UsersGroupsBasePage page = login().getAdminCenter().getUsersGroupsHomePage();
   UsersTabSubPage usersTab = page.getUsersTab();
   usersTab = usersTab.searchUser(username);
   usersTab = usersTab.viewUser(username).deleteUser();
   usersTab = usersTab.searchUser(username);
   assertFalse(usersTab.isUserFound(username));
   logout();
 }
コード例 #2
0
 /** @since 5.9.2 */
 private void restoreState() throws Exception {
   UsersTabSubPage usersTab = login().getAdminCenter().getUsersGroupsHomePage().getUsersTab();
   usersTab = usersTab.searchUser(TEST_USERNAME);
   usersTab = usersTab.viewUser(TEST_USERNAME).deleteUser();
   DocumentBasePage documentBasePage =
       usersTab
           .exitAdminCenter()
           .getHeaderLinks()
           .getNavigationSubPage()
           .goToDocument("Workspaces");
   deleteWorkspace(documentBasePage, WORKSPACE_TITLE);
   logout();
 }