| open |
/socialdemo/public/classic/ |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| waitForElementPresent |
link=Spaces |
|
| clickAndWait |
link=Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
displayName |
|
| type |
displayName |
Space12 |
| type |
description |
This is description for Space_12 |
| waitForElementPresent |
link=Create |
|
| clickAt |
link=Create |
2,2 |
| pause |
1000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space12 |
|
| click |
link=Space12 |
|
| waitForTextPresent |
Space12 was created |
|
| verifyTextPresent |
Space12 was created |
|
| echo |
-- Invite a user to join the Space |
|
| waitForElementPresent |
//a[contains(@href,'space12/settings')] |
|
| click |
//a[contains(@href,'space12/settings')] |
|
| waitForElementPresent |
//div[text()='Members'] |
|
| click |
//div[text()='Members'] |
|
| waitForElementPresent |
user |
|
| type |
user |
mary |
| waitForElementPresent |
//a[@title='Invite'] |
|
| click |
//a[@title='Invite'] |
|
| waitForTextPresent |
mary |
|
| verifyTextPresent |
mary |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
-- Accept the Invite |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| waitForElementPresent |
link=Spaces |
|
| clickAndWait |
link=Spaces |
|
| waitForElementPresent |
link=Received Invitations |
|
| clickAndWait |
link=Received Invitations |
|
| waitForElementPresent |
//div/a[text()='Space12']/following::ul//a[@title='Accept'] |
|
| click |
//div/a[text()='Space12']/following::ul//a[@title='Accept'] |
|
| echo |
-- Verify Accept the Invite successfully |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| waitForTextPresent |
This is description for Space_12 |
|
| verifyTextPresent |
This is description for Space_12 |
|
| echo |
-- Leave Space |
|
| waitForElementPresent |
//div/a[text()='Space12']/following::ul//a[@title='Leave'] |
|
| click |
//div/a[text()='Space12']/following::ul//a[@title='Leave'] |
|
| waitForTextNotPresent |
This is description for Space_12 |
|
| verifyTextNotPresent |
This is description for Space_12 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| echo |
-- Check member list after user leave |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| waitForElementPresent |
link=Spaces |
|
| clickAndWait |
link=Spaces |
|
| waitForElementPresent |
//a[text()='Space12'] |
|
| clickAndWait |
//a[text()='Space12'] |
|
| waitForTextPresent |
Mary Kelly has left the space |
|
| verifyTextPresent |
Mary Kelly has left the space |
|
| waitForElementPresent |
//a[contains(@href,'space12/members')] |
|
| clickAndWait |
//a[contains(@href,'space12/members')] |
|
| waitForTextNotPresent |
mary |
|
| verifyTextNotPresent |
mary |
|
| waitForElementPresent |
link=Spaces |
|
| clickAndWait |
link=Spaces |
|
| waitForElementPresent |
//div//a[text()='Space12']/ancestor::div/ul//a[@title='Delete'] |
|
| click |
//div//a[text()='Space12']/ancestor::div/ul//a[@title='Delete'] |
|
| waitForConfirmation |
Cannot undo one deleted space with all its page navigations and group. Are you sure to delete this space? |
|
| echo |
-- Verify space deleted |
|
| waitForTextNotPresent |
Space12 |
|
| verifyTextNotPresent |
Space12 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|