testCaseItemDocumentEdit
setTimeout 120000
open /nuxeo/logout
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
clickAndWait link=John Doe (Nuxeo)
clickAndWait link=Inbox
verifyElementPresent link=Case incoming mail for John, cc to Smith
clickAndWait link=Case incoming mail for John, cc to Smith
verifyElementPresent link=Incoming mail for John, cc to Smith
clickAndWait link=Incoming mail for John, cc to Smith
clickAndWait //*[@id='case_tree_form:case_tree_richtree:case__tree__recursiveTreeNodesAdaptor:0:case__tree__recursiveTreeNodesAdaptor:0::case_tree_node:text']/x:div/x:a/
verifyElementPresent link=Edit
clickAndWait link=Edit
verifyElementPresent //input[@value='Save']
type document_edit:nxl_cm_document:nxw_title an outgoing mail modified
clickAndWait //input[@value='Save']
verifyElementNotPresent link=Save
verifyElementNotPresent link=Cancel
verifyText document_properties:nxl_summary_current_caseitem_layout:nxl_cm_document:nxw_title an outgoing mail modified
clickAndWait link=Log out