| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Change Member Role |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| 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 |
Space10 |
| type |
description |
This is description for Space_10 |
| waitForElementPresent |
link=Create |
|
| click |
link=Create |
|
| pause |
30000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space10 |
|
| click |
link=Space10 |
|
| waitForTextPresent |
Space10 was created |
|
| verifyTextPresent |
Space10 was created |
|
| echo |
-- Invite a user to join the Space |
|
| waitForElementPresent |
//a[contains(@href,'spaces:space10') and @title='Settings'] |
|
| click |
//a[contains(@href,'spaces:space10') and @title='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 |
//a[@title='Invite'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Accept the Invite |
|
| 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=Received Invitations |
|
| clickAndWait |
link=Received Invitations |
|
| echo |
-- Verify your Space Invitation is displayed |
|
| waitForTextPresent |
This is description for Space_10 |
|
| verifyTextPresent |
This is description for Space_10 |
|
| waitForElementPresent |
//div[contains(text(),'This is description for Space_10')]/following-sibling::ul//a[@title='Accept'] |
|
| click |
//div[contains(text(),'This is description for Space_10')]/following-sibling::ul//a[@title='Accept'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- - Verify accepted user is displayed in Member lisr |
|
| waitForElementPresent |
link=Space10 |
|
| clickAndWait |
link=Space10 |
|
| waitForElementPresent |
//div[@class='NormalTab']//a[contains(@href,'spaces:space10') and @title='Members'] |
|
| click |
//div[@class='NormalTab']//a[contains(@href,'spaces:space10') and @title='Members'] |
|
| waitForElementPresent |
link=Mary Williams |
|
| verifyElementPresent |
link=Mary Williams |
|
| echo |
-- - Change Member Role |
|
| waitForElementPresent |
//a[contains(@href,'spaces:space10') and @title='Settings'] |
|
| click |
//a[contains(@href,'spaces:space10') and @title='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'] |
|
| echo |
-- Make Leader to Mary |
|
| waitForElementPresent |
//td[text()='mary']/following-sibling::td/a[@title='Make Leader'] |
|
| click |
//td[text()='mary']/following-sibling::td/a[@title='Make Leader'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=Space10 |
|
| clickAndWait |
link=Space10 |
|
| waitForElementPresent |
//a[contains(@href,'spaces:space10') and @title='Settings'] |
|
| verifyVisible |
//a[contains(@href,'spaces:space10') and @title='Settings'] |
|
| echo |
-- Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|