@Test(groups = { "alfresco-one" }) public void createNewFolderWithValidation() throws Exception { String folderName = "New Folder"; NewFolderPage newFolderPage = documentLibPage.getNavigation().selectCreateNewFolder(); newFolderPage = newFolderPage.createNewFolderWithValidation("", folderName, folderName).render(); Assert.assertTrue(newFolderPage.getMessage(NewFolderPage.Fields.NAME).length() > 0); newFolderPage.selectCancel(); newFolderPage = documentLibPage.getNavigation().selectCreateNewFolder(); documentLibPage = newFolderPage.createNewFolderWithValidation(folderName, folderName, folderName).render(); Assert.assertNotNull(documentLibPage); newFolderPage = documentLibPage.getNavigation().selectCreateNewFolder(); documentLibPage = newFolderPage.createNewFolderWithValidation(folderName + "-1").render(); Assert.assertNotNull(documentLibPage); }
public HtmlPage createNewFolderWithValidation(final String folderName) { return createNewFolderWithValidation(folderName, null); }
NewFolderPage extends ShareDialogue { public HtmlPage createNewFolderWithValidation(final String folderName) { return createNewFolderWithValidation(folderName, null); } }
NewFolderPage extends ShareDialogue { public HtmlPage createNewFolderWithValidation(final String folderName) { return createNewFolderWithValidation(folderName, null); } NewFolderPage(WebDrone drone); }
NewFolderPage extends ShareDialogue { public HtmlPage createNewFolderWithValidation(final String folderName) { return createNewFolderWithValidation(folderName, null); } NewFolderPage(WebDrone drone); @SuppressWarnings("unchecked") @Override NewFolderPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override NewFolderPage render(); @SuppressWarnings("unchecked") @Override NewFolderPage render(final long time); HtmlPage createNewFolder(final String folderName); HtmlPage createNewFolder(final String folderName, final String description); HtmlPage createNewFolder(final String folderName, final String folderTitle, final String description); HtmlPage createNewFolderWithValidation(final String folderName); HtmlPage createNewFolderWithValidation(final String folderName, final String description); HtmlPage createNewFolderWithValidation(final String folderName, final String folderTitle, final String description); void typeName(final String folderName); String typeTitle(final String folderTitle); String typeDescription(final String description); HtmlPage selectCancel(); String getMessage(Fields field); }
NewFolderPage extends ShareDialogue { public HtmlPage createNewFolderWithValidation(final String folderName) { return createNewFolderWithValidation(folderName, null); } NewFolderPage(WebDrone drone); @SuppressWarnings("unchecked") @Override NewFolderPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override NewFolderPage render(); @SuppressWarnings("unchecked") @Override NewFolderPage render(final long time); HtmlPage createNewFolder(final String folderName); HtmlPage createNewFolder(final String folderName, final String description); HtmlPage createNewFolder(final String folderName, final String folderTitle, final String description); HtmlPage createNewFolderWithValidation(final String folderName); HtmlPage createNewFolderWithValidation(final String folderName, final String description); HtmlPage createNewFolderWithValidation(final String folderName, final String folderTitle, final String description); void typeName(final String folderName); String typeTitle(final String folderTitle); String typeDescription(final String description); HtmlPage selectCancel(); String getMessage(Fields field);  }