@Test(groups = "Enterprise4.2", dependsOnMethods = "selectItem") public void selectReassign() throws Exception { myTasksPage = pageUnderTest.selectReassign(otherUser).render(); assertFalse(myTasksPage.isTaskPresent(taskName), "Task isn't reassigned on the user '" + otherUser + "'"); ShareUtil.logout(drone); DashBoardPage dash = loginAs(otherUser, "password"); myTasksPage = dash.getNav().selectMyTasks().render(); assertTrue(myTasksPage.isTaskPresent(taskName), "Task isn't reassigned on the user '" + otherUser + "'"); pageUnderTest = myTasksPage.navigateToEditTaskPage(taskName).render(); myTasksPage = pageUnderTest.selectReassign(testUserName).render(); ShareUtil.logout(drone); dash = loginAs(testUserName, "password"); myTasksPage = dash.getNav().selectMyTasks().render(); assertTrue(myTasksPage.isTaskPresent(taskName), "Task isn't reassigned on the user '" + testUserName + "'"); pageUnderTest = myTasksPage.navigateToEditTaskPage(taskName).render(); }
public MyTasksPage selectReassign(String userName) { if (StringUtils.isEmpty(userName)) { throw new IllegalArgumentException("User Name cannot be Empty"); } ReassignPage reassignPage = clickReassign(); reassignPage.selectUser(userName).render(); return drone.getCurrentPage().render(); }
EditTaskPage extends SharePage { public MyTasksPage selectReassign(String userName) { if (StringUtils.isEmpty(userName)) { throw new IllegalArgumentException("User Name cannot be Empty"); } ReassignPage reassignPage = clickReassign(); reassignPage.selectUser(userName).render(); return drone.getCurrentPage().render(); } }
EditTaskPage extends SharePage { public MyTasksPage selectReassign(String userName) { if (StringUtils.isEmpty(userName)) { throw new IllegalArgumentException("User Name cannot be Empty"); } ReassignPage reassignPage = clickReassign(); reassignPage.selectUser(userName).render(); return drone.getCurrentPage().render(); } EditTaskPage(WebDrone drone); }
EditTaskPage extends SharePage { public MyTasksPage selectReassign(String userName) { if (StringUtils.isEmpty(userName)) { throw new IllegalArgumentException("User Name cannot be Empty"); } ReassignPage reassignPage = clickReassign(); reassignPage.selectUser(userName).render(); return drone.getCurrentPage().render(); } EditTaskPage(WebDrone drone); @SuppressWarnings("unchecked") @Override EditTaskPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override EditTaskPage render(); @SuppressWarnings("unchecked") @Override EditTaskPage render(final long time); HtmlPage selectStatusDropDown(TaskStatus status); TaskStatus getSelectedStatusFromDropDown(); HtmlPage selectTaskDoneButton(); HtmlPage selectRejectButton(); HtmlPage selectApproveButton(); HtmlPage selectSaveButton(); void enterComment(String comment); TaskInfo getTaskDetailsInfo(); List<TaskItem> getTaskItems(); List<TaskItem> getTaskItem(String fileName); List<TaskStatus> getStatusOptions(); HtmlPage selectCancelButton(); boolean isReAssignButtonDisplayed(); HtmlPage selectAcceptButton(); boolean isButtonsDisplayed(Button button); void selectItem(String fileName, String siteName); SelectContentPage clickAddItems(); ReassignPage clickReassign(); MyTasksPage selectReassign(String userName); EditTaskPage selectClaim(); boolean isCommentTextAreaDisplayed(); String readCommentFromCommentTextArea(); }
EditTaskPage extends SharePage { public MyTasksPage selectReassign(String userName) { if (StringUtils.isEmpty(userName)) { throw new IllegalArgumentException("User Name cannot be Empty"); } ReassignPage reassignPage = clickReassign(); reassignPage.selectUser(userName).render(); return drone.getCurrentPage().render(); } EditTaskPage(WebDrone drone); @SuppressWarnings("unchecked") @Override EditTaskPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override EditTaskPage render(); @SuppressWarnings("unchecked") @Override EditTaskPage render(final long time); HtmlPage selectStatusDropDown(TaskStatus status); TaskStatus getSelectedStatusFromDropDown(); HtmlPage selectTaskDoneButton(); HtmlPage selectRejectButton(); HtmlPage selectApproveButton(); HtmlPage selectSaveButton(); void enterComment(String comment); TaskInfo getTaskDetailsInfo(); List<TaskItem> getTaskItems(); List<TaskItem> getTaskItem(String fileName); List<TaskStatus> getStatusOptions(); HtmlPage selectCancelButton(); boolean isReAssignButtonDisplayed(); HtmlPage selectAcceptButton(); boolean isButtonsDisplayed(Button button); void selectItem(String fileName, String siteName); SelectContentPage clickAddItems(); ReassignPage clickReassign(); MyTasksPage selectReassign(String userName); EditTaskPage selectClaim(); boolean isCommentTextAreaDisplayed(); String readCommentFromCommentTextArea();  }