testIncomingDocumentComment
setTimeout 120000
open /nuxeo/logout
retrieveCurrentDateInfo
open /nuxeo/
type username jdoe
type password jdoe1
clickAndWait Submit
clickAndWait link=Test Mailbox
clickAndWait link=Draft
clickAndWait link=Test incoming mail
verifyElementPresent link=Comments
clickAndWait link=Comments
clickAndWait link=Add a comment
verifyElementPresent //input[@value="Add"]
type //textarea Comment number 1
clickAndWait //input[@value='Add']
verifyTextPresent Delete
verifyTextPresent Comment number 1
clickAndWait link=Delete
verifyTextNotPresent Comment number 1
clickAndWait link=Log out