eXo_Platform3.0.x_SmokeTest
windowMaximize
open /portal/public/intranet
waitForElementPresent //div[@id='UIPresentationContainer']/div[2]/div[2]/div[1]/div/div/div[1]
click //div[@id='UIPresentationContainer']/div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
waitForTextPresent Root Root
verifyTextPresent Root Root
pause 3000
echo -- Add new space
waitForTextPresent My Spaces
waitForElementPresent link=Show all
clickAndWait link=Show all
waitForElementPresent link=Add New Space
click link=Add New Space
waitForTextPresent Add New Space
waitForElementPresent name
type name smoke space
click link=Create
pause 5000
waitForTextNotPresent Add new Space
waitForTextPresent smoke space - Members: 1
waitForElementPresent link=smoke space
verifyElementPresent link=smoke space
echo --wait some times before select to view added space
pause 5000
echo -- Select added space
waitForElementPresent link=smoke space
click link=smoke space
waitForTextPresent Space activities
waitForTextPresent Activity Stream of smoke space
waitForTextPresent smoke space was created by Root Root .
echo -- Check integrated Answers
waitForElementPresent link=Answers
verifyElementPresent link=Answers
click link=Answers
waitForTextPresent Categories
waitForElementPresent link=Submit question
verifyElementPresent link=Submit question
verifyTextPresent 0 Questions
verifyTextPresent 0 Open
verifyTextPresent 0 Pending
echo -- Add new question
waitForElementPresent link=Submit question
click link=Submit question
waitForElementPresent QuestionTitle
type QuestionTitle Question smoke
type EmailAddress root@localhost.com
clickAt link=Save
waitForTextPresent The question has been posted
waitForElementPresent //div[@id='UIAnswersPortlet']//div[@class='UIPopupMessages']//div[@class='UIAction']//a
click //div[@id='UIAnswersPortlet']//div[@class='UIPopupMessages']//div[@class='UIAction']//a
echo -- Verify after adding question
waitForElementPresent link=Question smoke
verifyElementPresent link=Question smoke
verifyTextPresent 1 Questions
verifyTextPresent 1 Open
verifyTextPresent 0 Pending
echo -- verify activity for added question
clickAndWait //div[@id='UISpaceMenu']/div/div[2]/a
waitForTextPresent Activity Stream of smoke space
verifyTextPresent Root Root has asked: Question smoke
echo -- verify link to question
waitForElementPresent link=Question smoke
click link=Question smoke
waitForTextPresent 1 Question
waitForTextPresent 0 Pending
waitForTextPresent Question smoke
waitForTextPresent No one has answered to that question.
verifyTextPresent No one has answered to that question.
echo -- check integrated calendar
clickAndWait //div[@id='UISpaceMenu']/div/div[4]/a/span
echo -- Add event on integrated calendar
click //form[@id='UIWeekView']/div[2]/div[1]/div
waitForTextPresent Add/edit event
waitForElementPresent //div[1]/div/table/tbody/tr[1]/td[2]/input
type //div[1]/div/table/tbody/tr[1]/td[2]/input Event smoke
click link=Save
waitForTextPresent The event will be saved and invitations sent. Do you confirm?"
click link=Save
waitForTextNotPresent Message   "The event will be saved and invitations sent. Do you confirm?"
waitForTextNotPresent Add/edit event
echo -- View added event in list view
click link=List
waitForTextPresent Event smoke
verifyTextPresent Event smoke
echo -- Check activity for added event
clickAndWait //div[@id='UISpaceMenu']/div/div[2]/a
waitForTextPresent A new event has been added : Event smoke
echo --Check integrated Dashboard
clickAndWait //div[@id='UISpaceMenu']/div/div[5]/a/span
waitForTextPresent Drag your gadgets here
echo -- Add gadget
waitForElementPresent link=Add Gadgets
click link=Add Gadgets
waitForTextPresent Dashboard Workspace
waitForElementPresent //div[@id='Gadgets/Calculator']//div//div
verifyElementPresent //div[@id='Gadgets/Calculator']//div//div
waitForElementPresent //div[@id='GadgetContainer']
waitForElementPresent //div[@id='GadgetItemsContainer']//div[@id='Gadgets/Calculator']//div//div
mouseOver //div[@id='GadgetItemsContainer']//div[@id='Gadgets/Calculator']//div//div
dragAndDropToObject //div[@id='GadgetItemsContainer']//div[@id='Gadgets/Calculator']//div//div //div[@id='GadgetContainer']
waitForElementPresent //div[@id='GadgetContainer']//div[2]//div[2]//div
verifyElementPresent //div[@id='GadgetContainer']//div[2]//div[2]//div
echo -- Check integrated Content Explorer
clickAndWait //div[@id='UISpaceMenu']/div/div[6]/a/span
waitForTextPresent / spaces / smoke_space
verifyElementPresent link=SharedData
click link=SharedData
echo -- Add new document
waitForElementPresent link=Add Document
click link=Add Document
waitForTextPresent Select Template
waitForElementPresent title
type title Article smoke
type name article-smoke name
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 2000
waitForElementPresent //form[@id='UIDocumentForm']/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //form[@id='UIDocumentForm']/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForTextPresent Article smoke
verifyElementPresent link=Article smoke
echo -- Check integrated Forum
waitForElementPresent //div[@id='UISpaceMenu']/div/div[7]/a/span
clickAndWait //div[@id='UISpaceMenu']/div/div[7]/a/span
waitForTextPresent Topic in forum smoke space
verifyTextPresent Topic in forum smoke space
waitForElementPresent link=Start topic
echo -- Add new topic
click link=Start topic
waitForTextPresent New topic
waitForElementPresent ThreadTitle
type ThreadTitle Topic smoke
waitForElementPresent //iframe[@id='messageContent___Frame']
selectFrame //iframe[@id='messageContent___Frame']
selectFrame //html//body//table//tbody//tr[2]/td/iframe
type //html/body Manchester
selectFrame relative=top
waitForElementPresent link=Submit
click link=Submit
waitForElementPresent link=Topic smoke
verifyElementPresent link=Topic smoke
echo -- Verify activity for added topic
clickAndWait //div[@id='UISpaceMenu']/div/div[2]/a
waitForTextPresent Root Root has posted a new topic: Topic smoke
verifyTextPresent Root Root has posted a new topic: Topic smoke
verifyElementPresent link=Topic smoke
click link=Topic smoke
waitForTextPresent Manchester
pause 3000
echo -- check add application
waitForElementPresent //div[@id='UISpaceMenu']/div/div[9]/a/span
clickAndWait //div[@id='UISpaceMenu']/div/div[9]/a/span
waitForElementPresent //div[@id='UITabPane']/div[1]/div/div[4]/div/div/div/div
click //div[@id='UITabPane']/div[1]/div/div[4]/div/div/div/div
echo -- Add application
waitForElementPresent //form[@id='UISpaceApplication']/div[4]/div/div/div/div
click //form[@id='UISpaceApplication']/div[4]/div/div/div/div
waitForTextPresent Application List
waitForElementPresent //a[contains(text(),'Contents')]
click //a[contains(text(),'Contents')]
waitForElementPresent //div[@id='Contents/AuthoringDashboard']/div/div/div[1]/div[3]
click //div[@id='Contents/AuthoringDashboard']/div/div/div[1]/div[3]
waitForElementPresent //div[@id='AddApplication']/div/div[1]/div/div/div/div[2]
click //div[@id='AddApplication']/div/div[1]/div/div/div/div[2]
waitForElementPresent //div[@id='AddApplication']/div/div[1]/div/div/div/div[2]
waitForTextNotPresent Application List
waitForElementPresent //div[@id='UISpaceMenu']/div/div[4]/a/span
echo -- Delete space
click link=Home
pause 3000
waitForElementPresent link=smoke space
verifyElementPresent link=smoke space
waitForElementPresent link=Show all
click link=Show all
waitForElementPresent link=Add New Space
waitForTextPresent smoke space - Members: 1
waitForText //div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/a
click //div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/a
assertConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
pause 5000
waitForTextNotPresent smoke space - Members: 1
verifyTextNotPresent smoke space - Members: 1
waitForElementNotPresent link=smoke space
verifyElementNotPresent link=smoke space
click link=Home
waitForElementPresent link=Show all
waitForElementNotPresent link=smoke space
verifyElementNotPresent link=smoke space
waitForElementPresent link=Logout
click link=Logout