// Copy/Paste a node into another node in the same navigation @Test() public void test01_CopyPasteNodeInSameNavigation() { // Goto Group Sites goToGroupSites(); // Select Edit Navigation of Content Management waitForElementPresent(CONTENT_EDIT_NAVI_LINK); click(CONTENT_EDIT_NAVI_LINK); // Copy Node on Content Explorer waitForElementPresent(CONTENT_EXPLORER); copyNode(CONTENT_EXPLORER); // Paste Node on Content Administration waitForElementPresent(CONTENT_ADMINISTRATION); pasteNode(CONTENT_ADMINISTRATION); // Save save(); waitForElementNotPresent(CONTENT_EXPLORER); // Select Edit Navigation of Content Management waitForElementPresent(CONTENT_EDIT_NAVI_LINK); click(CONTENT_EDIT_NAVI_LINK); click(CONTENT_ADMINISTRATION); // Verify Copy/Paste result and Reset data waitForElementPresent(CHILD_NODE); rightClickOnElement(CHILD_NODE); click(ELEMENT_NODE_DELETE); waitForConfirmation(DELETE_CONFIRMATION_MESSAGE); waitForElementNotPresent(CHILD_NODE); save(); waitForElementNotPresent(CONTENT_EXPLORER); }
// Copy/Paste a node into another node in different navigation @Test() public void test02_CopyPasteNodeInDiffirentNavigation() { // Goto Group Sites goToGroupSites(); // Select Edit Navigation of Content Management waitForElementPresent(CONTENT_EDIT_NAVI_LINK); click(CONTENT_EDIT_NAVI_LINK); // Right click and select Copy Node on Content Explorer waitForElementPresent(CONTENT_EXPLORER); copyNode(CONTENT_EXPLORER); // Close Content Management Navigation waitForElementPresent(CLOSE_NAVIGATION); click(CLOSE_NAVIGATION); // Select Edit Navigation of Administration waitForElementPresent(ADMIN_EDIT_PROPERTIES_LINK); click(ADMIN_EDIT_PROPERTIES_LINK); // Right click and confirm Paste Node not exist on Node Portal Administration waitForElementPresent(PORTAL_ADMINISTRATION); rightClickOnElement(PORTAL_ADMINISTRATION); waitForElementNotPresent(ELEMENT_PASTE_NODE); // Close Content Management Navigation waitForElementPresent(CLOSE_NAVIGATION); click(CLOSE_NAVIGATION); }
// Copy/Paste a node into the same place @Test() public void test03_CopyPasteNodesInSamePlace() { // Goto Group Sites goToGroupSites(); // Select Edit Navigation of Content Management waitForElementPresent(CONTENT_EDIT_NAVI_LINK); click(CONTENT_EDIT_NAVI_LINK); // Copy Node on Content Explorer waitForElementPresent(CONTENT_EXPLORER); copyNode(CONTENT_EXPLORER); // Paste Node on Content Administration waitForElementPresent(CONTENT_ADMINISTRATION); pasteNode(CONTENT_ADMINISTRATION); // Save save(); waitForElementNotPresent(CONTENT_EXPLORER); // Select Edit Navigation of Content Management waitForElementPresent(CONTENT_EDIT_NAVI_LINK); click(CONTENT_EDIT_NAVI_LINK); click(CONTENT_ADMINISTRATION); copyNode(By.xpath(CHILD_NODE)); pasteNode(CONTENT_ADMINISTRATION); // Verify display message to notice that Node already existed waitForTextPresent(SAME_PLACE_MESSAGE); click(OK_BUTTON); rightClickOnElement(CHILD_NODE); click(ELEMENT_NODE_DELETE); waitForConfirmation(DELETE_CONFIRMATION_MESSAGE); waitForElementNotPresent(CHILD_NODE); save(); waitForElementNotPresent(CONTENT_EXPLORER); }