Test_SNF_CS30_DragDropMail
open /portal
windowMaximize
echo -Drag and Drop Mail-
waitForElementPresent //b[contains(text(),'Sign in')]
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username mary
type password gtn
clickAndWait id=UIPortalLoginFormAction
pause 5000
waitForElementPresent link=Mail
click link=Mail
echo -- Drag and Drop Mail
waitForElementPresent xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
click xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
pause 1000
dragAndDropToObject link=eXo_Test link=Sent
pause 5000
echo -- Check moved mail in Sent
waitForElementPresent link=Sent
click link=Sent
pause 10000
waitForElementPresent link=eXo_Test
verifyElementPresent link=eXo_Test
echo -- Drag and Drop back Inbox
waitForElementPresent xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
click xpath=//div[@id='uiMessageGrid']//table[@id='UIListUsers']/tbody[1]//input[1]
dragAndDropToObject link=eXo_Test link=Inbox
pause 5000
echo -- Check moved mail in Inbox
waitForElementPresent link=Inbox (1)
click link=Inbox (1)
waitForElementPresent link=eXo_Test
verifyElementPresent link=eXo_Test
clickAndWait link=Logout
close