testMailDocumentEdit
setTimeout 120000
open /nuxeo/logout
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent bree
clickAndWait link=Bree Van de Kaamp (Nuxeo)
clickAndWait link=Inbox
verifyElementPresent link=Incoming mail for Bree, cc to Linnet
clickAndWait link=Incoming mail for Bree, cc to Linnet
clickAndWait //*[@id='case_tree_form:case_tree_richtree:case__tree__recursiveTreeNodesAdaptor:0:case__tree__recursiveTreeNodesAdaptor:0::case_tree_node:text']/x:div/x:a/
clickAndWait link=Edit
verifyElementPresent //input[@value='Save']
type document_edit:nxl_cm_document:nxw_title an outgoing mail modified
clickAndWait //input[@value='Save']
verifyElementNotPresent //input[@value='Save']
verifyElementPresent link=Edit
verifyText document_properties:nxl_summary_current_caseitem_layout:nxl_cm_document:nxw_title an outgoing mail modified
clickAndWait link=History
verifyTextPresent Modification
clickAndWait link=Log out