/** CaseId: 68891 -> Add application into container in layout of portal */ @Test public void test03_AddAppToContainer_LayoutOfPortal() { String portalName = "Sniffportalnavigation03"; info("Add new portal"); navTool.goToPortalSites(); addNewPortal( portalName, null, null, null, null, "On Demand", true, null, "Platform /Content Management ", "*"); waitForAndGetElement(ELEMENT_PORTAL.replace("${siteName}", portalName)); goToPortalEditLayout(portalName); click(ELEMENT_CATEGORY_COLLABORATION); dragAndDropToObject(ELEMENT_ANWSER_PORTLET, By.xpath("//*[text() = 'Portal Page']/..")); waitForAndGetElement( "//*[@class='portletLayoutDecorator' and contains(text(),'Answers Portlet')]"); click(ELEMENT_SWITCH_VIEW_MODE_PORTAL); waitForAndGetElement(ELEMENT_ANWSER_PORTLET_IN_VIEW_PAGE); click(ELEMENT_SWITCH_VIEW_MODE_PORTAL); pageE.finishEditLayout(); deletePortal(portalName); }
/** CaseId 68892 -> Edit portal's config */ @Test public void test04_EditPortalConfig() { String portalName = "Sniffportalnavigation04"; String label = "sniff portal lable 04"; String description = "sniff portal descriptrion 04"; info("Add new portal"); navTool.goToPortalSites(); addNewPortal( portalName, null, null, null, null, "On Demand", true, null, "Platform /Content Management ", "*"); waitForAndGetElement(ELEMENT_PORTAL.replace("${siteName}", portalName)); info("Config portal"); editPortal( portalName, label, description, "French", null, "Always", true, null, "Development ", "member"); Utils.pause(1000); info("Check config portal successfully"); goToEditSiteConfiguration(portalName); assert getValue(ELEMENT_PORTAL_LABEL).equalsIgnoreCase(label); assert getValue(ELEMENT_PORTAL_DESCRIPTION).equalsIgnoreCase(description); click(ELEMENT_PERMISSION_SETTING_TAB); click(ELEMENT_EDIT_PERMISSION_SETTING); waitForTextPresent("/developers"); but.cancel(); Utils.pause(1000); deletePortal(portalName); }