| EditFrontPageTest | ||
| open | /web/guest/home/ | |
| waitForElementPresent | link=Wiki Test Page | |
| clickAtAndWait | link=Wiki Test Page | |
| assertText | //div[@class='wiki-body']/h2 | Test Wiki Article |
| assertText | //i | this is italics |
| assertText | //b | bold |
| assertElementPresent | link=Link to website | |
| assertText | //div[@class='wiki-body']/ul/li | this is a list item this is a sub list item |
| clickAtAndWait | link=Edit | |
| type | _36_content | ==Test Wiki Article Edited== //this is italics. edited.// **bold edited** [[http://www.liferay.com|Link to website. Edited.]] *this is a list item. edited. **this is a sub list item. edited. |
| clickAtAndWait | //input[@value='Publish'] | |
| assertText | //div[@class='wiki-body']/h2 | Test Wiki Article Edited |
| assertText | //i | this is italics. edited. |
| assertText | //b | bold edited |
| assertElementPresent | link=Link to website. Edited. | |
| assertText | //div[@class='wiki-body']/ul/li | this is a list item. edited. this is a sub list item. edited. |
| assertNotText | //div[@class='wiki-body']/h2 | Test Wiki Article |
| assertNotText | //i | this is italics |
| assertNotText | //b | bold |
| assertElementNotPresent | link=Link to website | |
| assertNotText | //div[@class='wiki-body']/ul/li | this is a list item this is a sub list item |
| open | /web/guest/home/ | |
| waitForElementPresent | link=Wiki Test Page | |
| clickAtAndWait | link=Wiki Test Page | |
| clickAtAndWait | link=Details | |
| clickAtAndWait | link=History | |
| assertElementPresent | link=1.2 | |
| assertElementPresent | link=1.1 | |
| assertElementPresent | link=1.0 (Minor Edit) | |