Test_SNF_SOC_03_Demo_SearchSpace
open /portal/public/intranet/
windowMaximize
echo -- Search Space
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username john
type password gtn
echo --Log in
clickAndWait id=UIPortalLoginFormAction
waitForElementPresent link=My Spaces
clickAndWait link=My Spaces
echo -- Add a new Space
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent displayName
type displayName Space03
type description This is description for Space_03
waitForElementPresent link=Create
click link=Create
pause 30000
echo -- Verify space created
waitForElementPresent link=Space03
click link=Space03
waitForTextPresent Space03 was created
verifyTextPresent Space03 was created
echo -- Search with Invalid value
waitForElementPresent link=My Spaces
clickAndWait link=My Spaces
waitForElementPresent SpaceSearch
type SpaceSearch Blank
waitForElementPresent id=SearchButton
click id=SearchButton
waitForTextPresent You do not have any spaces yet.
verifyTextPresent You do not have any spaces yet.
echo -- Search with Valid value
waitForElementPresent SpaceSearch
type SpaceSearch Space03
waitForElementPresent id=SearchButton
click id=SearchButton
waitForTextPresent This is description for Space_03
verifyTextPresent This is description for Space_03
echo -- Search with Invalid directory value
click link=A
waitForTextPresent You do not have any spaces yet.
verifyTextPresent You do not have any spaces yet.
echo -- Search with Valid directory value
click link=S
waitForTextPresent This is description for Space_03
verifyTextPresent This is description for Space_03
echo -- Logout
waitForElementPresent link=Logout
clickAndWait link=Logout