Test_SNF_SOC_15_Demo_CheckDisplayingPendingSpaceList
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Spaces
clickAndWait link=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
waitForElementPresent link=Create
clickAt link=Create 2,2
pause 1000
echo -- Verify space created
waitForElementPresent link=Space15
click link=Space15
waitForTextPresent Space15 was created
verifyTextPresent Space15 was created
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo --Request  to join the Space
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Spaces
clickAndWait link=Spaces
waitForTextPresent This is description for Space_15
verifyTextPresent This is description for Space_15
echo -- Join
waitForElementPresent //div/a[text()='Space15']/following::ul//a[@title='Join']
click //div/a[text()='Space15']/following::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
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Delete Space created
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Spaces
clickAndWait link=Spaces
waitForElementPresent //div//a[text()='Space15']/ancestor::div/ul//a[@title='Delete']
click //div//a[text()='Space15']/ancestor::div/ul//a[@title='Delete']
waitForConfirmation Cannot undo one deleted space with all its page navigations and group. Are you sure to delete this space?
echo -- Verify space deleted
waitForTextNotPresent Space15
verifyTextNotPresent Space15
clickAndWait link=Sign out