testCaseCreation
setTimeout 120000
open /nuxeo/logout
retrieveCurrentDateInfo
open /nuxeo/
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
verifyTextPresent My Mailboxes
verifyElementPresent link=Test Mailbox
clickAndWait link=Test Mailbox
clickAndWait link=Draft
verifyElementPresent link=New
mouseDown link=New
clickAndWait link=Case
retrieveTestFolderPath
type document_create:nxl_cm_case:nxw_title Test case
clickAndWait link=Create
verifyTextPresent Case saved
verifyTextPresent Test case
mouseDown addCaseItem
clickAndWait selectDocumentTypeForCreationForm:selectDocumentTypeForCreationTable:0:selectDocumentTypeForCreationCategory:0:selectDocumentTypeForCreationCategoryTable:0:selectDocumentTypeForCreationCategoryTitleLink
type document_create:nxl_cm_document:nxw_title Test fist item
select document_create:nxl_cm_document:nxw_document_type Article
clickAndWait link=Create
verifyElementPresent Link=Test fist item
click virtualNavTreeTab:virtualNavTreeList:1:virtualNavTreeLink
waitForTextPresent Saved searches 1000
type facetedSearchForm:nxl_faceted_search_default:nxw_text_search:nxw_ecm_fulltext_1 Test case
storeEval selenium.browserbot.getCurrentWindow().document.body.innerHTML innerhtml
echo ${innerhtml}
clickAndWait //div[@class="facetedSearchActionBar"]/input
verifyText //tr[@class="dataRowEven"]/td[6]/div/span John Doe
clickAndWait link=Log out