| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Display your Space Invitation |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Log in : Root |
|
| 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 |
Space07 |
| type |
description |
This is description for Space_07 |
| waitForElementPresent |
link=Create |
|
| click |
link=Create |
|
| pause |
30000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space07 |
|
| click |
link=Space07 |
|
| waitForTextPresent |
Space07 was created |
|
| verifyTextPresent |
Space07 was created |
|
| echo |
-- Invite a user to join the Space |
|
| waitForElementPresent |
//a[contains(@href,'spaces:space07') and @title='Settings'] |
|
| click |
//a[contains(@href,'spaces:space07') and @title='Settings'] |
|
| echo |
-- Members Tab |
|
| 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 |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| echo |
--Log in : Mary |
|
| 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_07 |
|
| verifyTextPresent |
This is description for Space_07 |
|
| waitForElementPresent |
//div[contains(text(),'This is description for Space_07')]/following-sibling::ul//a[@title='Accept'] |
|
| click |
//div[contains(text(),'This is description for Space_07')]/following-sibling::ul//a[@title='Accept'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- - Verify accepted user is displayed in Space Member List |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=Space07 |
|
| clickAndWait |
link=Space07 |
|
| waitForTextPresent |
Mary Williams has joined the space. |
|
| verifyTextPresent |
Mary Williams has joined the space. |
|
| waitForElementPresent |
//div[@class='NormalTab']//a[contains(@href,'spaces:space07') and @title='Members'] |
|
| click |
//div[@class='NormalTab']//a[contains(@href,'spaces:space07') and @title='Members'] |
|
| waitForElementPresent |
link=Mary Williams |
|
| verifyElementPresent |
link=Mary Williams |
|
| echo |
-- Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|