| EditFrontPageMinorChangeTest | ||
| 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== //this is italics// **bold** [[http://www.liferay.com|Link to website]] *this is a list item **this is a sub list item Minor Edit. |
| store | eval(selenium.isChecked('_36_minorEditCheckbox')) | minorEditChecked |
| gotoIf | ${minorEditChecked} | MinorEditChecked |
| clickAt | _36_minorEditCheckbox | |
| label | MinorEditChecked | |
| waitForVisible | //span[@class='aui-icon-search aui-icon'] | |
| clickAtAndWait | //input[@value='Save'] | |
| 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 |
| assertText | //div[@class='wiki-body']/p[4] | Minor Edit. |
| open | /web/guest/home/ | |
| waitForElementPresent | link=Wiki Test Page | |
| clickAtAndWait | link=Wiki Test Page | |
| clickAtAndWait | link=Details | |
| clickAtAndWait | link=History | |
| assertElementPresent | link=1.2 (Minor Edit) | |
| assertElementPresent | link=1.1 | |
| assertElementPresent | link=1.0 (Minor Edit) | |