Test_SNF_SOC_18_Demo_SearchPeople
open /portal/public/intranet/
windowMaximize
echo -- Search People
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait id=UIPortalLoginFormAction
waitForElementPresent link=Find People
clickAndWait link=Find People
echo -- Search with Invalid value
waitForElementPresent Search
type Search Blank
waitForElementPresent id=SearchButton
click id=SearchButton
waitForTextPresent Have no any person yet.
verifyTextPresent Have no any person yet.
echo -- Search with Valid value
waitForElementPresent Search
type Search Mary
waitForElementPresent id=SearchButton
click id=SearchButton
waitForElementPresent link=Mary Williams
verifyElementPresent link=Mary Williams
verifyTextPresent mary.williams@acme.exoplatform.com
echo -- Search with Invalid directory value
click link=A
waitForTextPresent Have no any person yet.
verifyTextPresent Have no any person yet.
echo -- Search with Valid directory value
click link=J
waitForElementPresent link=John Smith
verifyElementPresent link=John Smith
waitForElementPresent link=James Davis
verifyElementPresent link=James Davis
waitForElementPresent link=Jack Miller
verifyElementPresent link=Jack Miller
echo -- Logout
waitForElementPresent link=Logout
clickAndWait link=Logout