Test_SNF_SOC_15_Demo_CheckDisplayingPendingSpaceList
open /portal/public/intranet/
windowMaximize
echo --  Check displaying on Pending space list
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
type password gtn
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 Space15
type description This is description for Space_15
click link=Create
pause 30000
echo -- Verify space created
waitForElementPresent link=Space15
click link=Space15
waitForTextPresent Space15 was created
verifyTextPresent Space15 was created
waitForElementPresent link=Logout
clickAndWait link=Logout
echo --Request  to join the Space
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username mary
type password gtn
clickAndWait id=UIPortalLoginFormAction
waitForElementPresent link=My Spaces
clickAndWait link=My Spaces
waitForElementPresent link=All Spaces
clickAndWait link=All Spaces
waitForTextPresent This is description for Space_15
verifyTextPresent This is description for Space_15
waitForElementPresent //div[contains(text(),'This is description for Space_15')]/following-sibling::ul//a[@title='Join']
click //div[contains(text(),'This is description for Space_15')]/following-sibling::ul//a[@title='Join']
echo -- - Verify requested space is displayed in Space Pending List
waitForElementPresent link=Pending Requests
clickAndWait link=Pending Requests
waitForTextPresent This is description for Space_15
verifyTextPresent This is description for Space_15
echo -- Logout
waitForElementPresent link=Logout
clickAndWait link=Logout