| open |
/web/guest/home/ |
|
| waitForElementPresent |
link=Control Panel |
|
| clickAtAndWait |
link=Control Panel |
|
| clickAtAndWait |
link=Web Content |
|
| assertElementPresent |
//td[2]/a |
Web Content ID |
| assertText |
//td[3]/a |
Web Content Name Edited |
| assertText |
//td[4]/a |
1.1 |
| assertText |
//td[5]/a |
Draft |
| assertElementPresent |
//td[6]/a |
Modified Date |
| assertElementPresent |
//td[7]/a |
Display Date |
| assertText |
//td[8]/a |
Joe Bloggs |
| clickAtAndWait |
//td[3]/a |
Web Content Name Edited |
| pause |
5000 |
|
| assertElementPresent |
//input[@value='Submit for Publication'] |
|
| assertElementNotPresent |
//input[@value='Submit for Publication' and @disabled=''] |
|
| assertElementPresent |
//input[@value='Expire'] |
|
| assertElementPresent |
//input[@value='Expire' and @disabled=''] |
|
| assertElementNotPresent |
//input[@value='Discard Draft' and @disabled=''] |
|
| clickAndWait |
//input[@value='Discard Draft'] |
|
| assertConfirmation |
Are you sure you want to discard this draft? |
|
| assertText |
//div[@class='portlet-msg-success'] |
Your request processed successfully. |
| assertElementPresent |
//td[2]/a |
Web Content ID |
| assertText |
//td[3]/a |
Web Content Name |
| assertText |
//td[4]/a |
1.0 |
| assertText |
//td[5]/a |
Approved |
| assertElementPresent |
//td[6]/a |
Modified Date |
| assertElementPresent |
//td[7]/a |
Display Date |
| assertText |
//td[8]/a |
Joe Bloggs |