Test_SNF_SOC_18_Demo_SearchPeople
open /portal/public/default/
windowMaximize
echo -- Search People
clickAndWait link=exact:Acme: Social Intranet
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
pause 1000
waitForElementPresent link=Find People
clickAndWait link=Find People
pause 1000
echo -- Search with Invalid value
waitForElementPresent Search
type Search Blank
waitForElementPresent //div[@class='SearchIcon']
click //div[@class='SearchIcon']
waitForTextPresent No person found.
verifyTextPresent No person found.
echo -- Search with Valid value
waitForElementPresent Search
type Search Mary
click //div[@class='SearchIcon']
waitForElementPresent link=Mary Williams
verifyElementPresent link=Mary Williams
echo -- Search with Invalid directory value
click link=A
waitForTextPresent No person found.
verifyTextPresent No person found.
echo -- Search with Valid directory value
click link=J
waitForElementPresent link=John Smith
verifyElementPresent link=John Smith
waitForElementPresent link=Logout
clickAndWait link=Logout
close