| AddFrontPageCreoleTableOfContentsTest | ||
| open | /web/guest/home/ | |
| waitForElementPresent | link=Wiki Test Page | |
| clickAtAndWait | link=Wiki Test Page | |
| clickAtAndWait | link=This page is empty. Edit it to add some text. | |
| type | _36_content | < == Unit == === Chapter === ==== Section ==== |
| clickAtAndWait | //input[@value='Save'] | |
| assertTextPresent | Your request processed successfully. | |
| assertText | //div[@class='collapsebox']/h4 | Table of Contents [-] |
| assertText | //div[@class='collapsebox']//span | [-] |
| assertText | //div[@class='toc']//li[1]/a | 1 Unit |
| assertText | //div[@class='toc']//li[2]/a | 1.1 Chapter |
| assertText | //div[@class='toc']//li[3]/a | 1.1.1 Section |
| assertText | //div[@class='wiki-body']/h2 | Unit # |
| assertText | //div[@class='wiki-body']/h3 | Chapter # |
| assertText | //div[@class='wiki-body']/h4 | Section # |