Test_SOC_SPC_04.001_SocDemo_ShowEditSpaceFormByUserWhoIsNotManagerOfTheSpace
open /socialdemo/public/classic/
echo -- creator signs in--
click //span[2]
waitForElementPresent username
type username john
type password gtn
echo -- add new space--
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
clickAndWait link=Spaces
click link=Add New Space
waitForElementPresent name
type name EditSpaceByUserIsNormalMember
type description this is test
click link=Create
pause 3000
echo -- access 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 -- access space setting--
clickAndWait //div[@id='UISpaceMenu']/div/div[5]/a/span
echo -- invite Mary user--
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
waitForElementPresent user
type user mary
click //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[1]/div[2]/div
clickAndWait link=Sign out
echo -- Mary signs in to accept invitation--
click //span[2]
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space page--
clickAndWait link=Spaces
echo -- Mary acept invitation--
clickAndWait link=Invitations
waitForElementPresent //div[@id='UIManageInvitationSpaces']/div[2]/div[2]/div[2]/div[1]/a[2]
click //div[@id='UIManageInvitationSpaces']/div[2]/div[2]/div[2]/div[1]/a[2]
pause 2000
echo -- back to Mary's space--
clickAndWait link=My Spaces
echo -- access space--
clickAndWait //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
echo -- verify space setting doesn't appear--
verifyTextNotPresent Space Setting
clickAndWait link=Sign out
echo -- John sign in to delete space to clean data--
click //span[2]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access Space page--
clickAndWait link=Spaces
echo -- delete space
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.
clickAndWait link=Sign out