| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| echo |
-- Log in |
|
| waitForElementPresent |
link=exact:Acme: Social Intranet |
|
| clickAndWait |
link=exact:Acme: Social Intranet |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Login : Root |
|
| clickAndWait |
link=Sign in |
|
| echo |
--My Spaces |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
name |
|
| type |
name |
Space01 |
| type |
description |
This is description for Space_01 |
| click |
link=Create |
|
| echo |
-- Verify space created in the list |
|
| waitForElementPresent |
link=Space01 |
|
| click |
link=Space01 |
|
| waitForTextPresent |
Space01 was created |
|
| verifyTextPresent |
Space01 was created |
|
| echo |
-- Delete Space created |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| waitForElementPresent |
//a[text()='Space01']/ancestor:: div/a[@title='Delete Space'] |
|
| click |
//a[text()='Space01']/ancestor:: div/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. |
|
| waitForElementNotPresent |
//a[text()='Space01']/ancestor:: div/a[@title='Delete Space'] |
|
| verifyElementNotPresent |
//a[text()='Space01']/ancestor:: div/a[@title='Delete Space'] |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|