Test_SNF_SOC_10_Demo_ChangeMemberRole
open /portal/public/intranet/
windowMaximize
echo -- Change Member Role
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
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 Space10
type description This is description for Space_10
waitForElementPresent link=Create
click link=Create
echo -- Verify space created
waitForElementPresent link=Space10
verifyElementPresent link=Space10
click link=Space10
waitForTextPresent Space10 was created
verifyTextPresent Space10 was created
echo -- Invite a user to join the Space
waitForElementPresent link=Space Settings
click link=Space Settings
waitForElementPresent //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
click //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
waitForElementPresent user
type user mary
click //div[@class='SearchAddMemberIcon']
waitForTextPresent mary
verifyTextPresent mary
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Accept the Invite
open /portal/public/intranet/
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=My Spaces
click link=My Spaces
waitForElementPresent link=Invitations
click link=Invitations
pause 500
echo -- Verify your Space Invitation is displayed
waitForTextPresent This is description for Space_10
verifyTextPresent This is description for Space_10
waitForElementPresent //a[@class='Icon IconAccept']
click //a[@class='Icon IconAccept']
waitForElementPresent link=Logout
clickAndWait link=Logout
open /portal/public/intranet/
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
echo -- - Verify accepted user is displayed in Member lisr
waitForElementPresent link=Members
click link=Members
waitForElementPresent link=Mary Kelly
verifyElementPresent link=Mary Kelly
echo -- - Change Member Role
waitForElementPresent link=Space Settings
click link=Space Settings
waitForElementPresent //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
click //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
waitForElementPresent //table[@class='UIGrid']//tbody/tr[2]//div[@title='Make Leader']
click //table[@class='UIGrid']//tbody/tr[2]//div[@title='Make Leader']
waitForElementPresent //table[@class='UIGrid']//tbody/tr[2]//div[@title='Remove Leader']
verifyElementPresent //table[@class='UIGrid']//tbody/tr[2]//div[@title='Remove Leader']
echo -- Delete Space created
waitForElementPresent link=My Spaces
click link=My Spaces
waitForElementPresent //a[@title='Delete Space']
click //a[@title='Delete Space']
waitForConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
echo -- Verify space deleted
waitForTextNotPresent Space10
verifyTextNotPresent Space10
waitForElementPresent link=Logout
clickAndWait link=Logout