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 //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Directory
click link=Directory
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 Kelly
verifyElementPresent link=Mary Kelly
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 Anthony
verifyElementPresent link=John Anthony
waitForElementPresent link=Logout
clickAndWait link=Logout