traverseLinkWithKeyAndReturn("projects.link.people");
traverseLinkWithKeyAndReturn("projects.link.aggregate.timesheet");
}
public void testTopPageInSysAdminRole() throws Exception {
Project hiddenProject = setUpProject(HIDDEN);
Project project = setUpProject(NOT_HIDDEN);
Person person = setUpPerson();
setUpRole(person, null, "sysadmin");
commit();
tester.login(person.getUserId(), "test");
tester.assertKeyPresent("projects.title");
// Custom table assert - may be other projects here
WebTable table = tester.getDialog().getWebTableBySummaryOrId("objecttable");
boolean foundProject = false;
boolean foundHiddenProject = false;
int nrow = table.getRowCount();
for (int r = 0; r < nrow; r++) {
if (table.getCellAsText(r, 0).trim().equals(project.getName())) {
foundProject = true;
assertEquals("N",table.getCellAsText(r, 2).trim());
assertImageInCell(table, r, 3, EDIT_IMAGE);
assertImageInCell(table, r, 3, DELETE_IMAGE);
} else if (table.getCellAsText(r, 0).trim().equals(hiddenProject.getName())) {