Test_SOC_SPC_07.022_SocDemo_UserWhoIsNotMemberOfTheSpaceSendsRequest
echo --Test_SOC_SPC_07.022_SocDemo_UserWhoIsNotMemberOfTheSpaceSendsRequest--
open /socialdemo/public/classic/
echo -- John sign in to create new space --
click //span[2]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space---
waitForElementPresent link=Spaces
clickAndWait link=Spaces
echo -- Add new space--
waitForElementPresent link=Add New Space
click link=Add New Space
echo --enter name and Description--
waitForElementPresent name
type name UserSendRequest
type description user will send request
waitForElementPresent link=Create
click link=Create
echo -- john sign out--
clickAndWait link=Sign out
echo -- Mary sign in to send joining request--
click //span[2]
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space--
waitForElementPresent link=Spaces
clickAndWait link=Spaces
echo -- access Public space list---
clickAndWait link=Publics
echo -- send request--
waitForElementPresent //div[@id='UIManagePublicSpaces']/div[2]/div[2]/div[2]/div[1]/a
click //div[@id='UIManagePublicSpaces']/div[2]/div[2]/div[2]/div[1]/a
echo --access pending space list--
clickAndWait link=Pendings
echo --verify Pending space--
echo -- Mary Sign out--
verifyText //div[@id='UIManagePendingSpaces']/div[2]/div[2]/div[2]/div[1]/div[1]/span[1] UserSendRequest
clickAndWait link=Sign out
echo -- John logs in to check Mary's sending request--
click //span[2]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --access space --
pause 1000
clickAndWait link=Spaces
echo -- access created space---
waitForElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
clickAndWait //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
echo -- select Space setting portlet--
clickAndWait //div[@id='UISpaceMenu']/div/div[5]/a/span
echo --select member tab--
waitForElementPresent //div[@id='UITabPane']/div[1]/div/div[3]/div/div/div/div
click //div[@id='UITabPane']/div[1]/div/div[3]/div/div/div/div
echo -- verify Mary on Pending list--
verifyTextPresent Pending
verifyTextPresent mary
echo -- back to space page--
clickAndWait link=Spaces
echo -- delete space to clean data--
click //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/a[1]
assertConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
echo -- John sign out--
clickAndWait link=Sign out