testContentViewLocalConfiguration
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium testContentViewLocalConfiguration
open logout
type username Administrator
type password Administrator
clickAndWait Submit
verifyTextPresent Administrator
clickAndWait link=Workspaces
clickAndWait link=Create a new workspace
type //td[@class="fieldColumn"]/input[@type="text"] localConfigWS
clickAndWait //input[@value='Create']
click link=New
waitForTextPresent Available document types
clickAndWait link=Folder
type //td[@class="fieldColumn"]/input[@type="text"] localConfigFolder
clickAndWait //input[@value='Create']
click link=New
waitForTextPresent Available document types
clickAndWait link=Note
type //td[@class="fieldColumn"]/input[@type="text"] localConfigNote
clickAndWait //input[@value='Create']
clickAndWait link=localConfigFolder
verifyTextPresent localConfigNote
click document_content:nxl_document_listing_table_1:nxw_listing_ajax_selection_box_with_current_document
waitForEditable document_content_buttons:nxw_CURRENT_SELECTION_TRASH_form:nxw_CURRENT_SELECTION_TRASH 12000
clickAndWait document_content_buttons:nxw_CURRENT_SELECTION_TRASH_form:nxw_CURRENT_SELECTION_TRASH
assertConfirmation Delete selected document(s)?
verifyTextNotPresent localConfigNote
clickAndWait link=localConfigWS
clickAndWait link=Manage
clickAndWait link=Local configuration
watchA4jRequests
click contentViewConfigurationView:local_configuration_nxl_content_view_configuration:local_configuration_nxl_content_view_configuration_form:nxl_content_view_configuration_enable
waitForA4jRequest 10000
watchA4jRequests
click contentViewConfigurationView:local_configuration_nxl_content_view_configuration:local_configuration_nxl_content_view_configuration_form:nxl_content_view_configuration:nxw_content_view_selection:nxw_content_view_selection_add
waitForA4jRequest 10000
select id=contentViewConfigurationView:local_configuration_nxl_content_view_configuration:local_configuration_nxl_content_view_configuration_form:nxl_content_view_configuration:nxw_content_view_selection:nxw_content_view_selection_input:0:nxw_complexListItem:nxw_docType label=Folder
select id=contentViewConfigurationView:local_configuration_nxl_content_view_configuration:local_configuration_nxl_content_view_configuration_form:nxl_content_view_configuration:nxw_content_view_selection:nxw_content_view_selection_input:0:nxw_complexListItem:nxw_contentView label=Trash content
watchA4jRequests
click contentViewConfigurationView:local_configuration_nxl_content_view_configuration:local_configuration_nxl_content_view_configuration_form:nxl_content_view_configuration_save
waitForA4jRequest 10000
clickAndWait link=localConfigFolder
verifyTextPresent localConfigNote
click document_trash_content:nxl_document_listing_table_1:nxw_listing_ajax_selection_box_with_current_document
waitForEditable document_trash_content_buttons:nxw_CURRENT_SELECTION_UNDELETE_form:nxw_CURRENT_SELECTION_UNDELETE 12000
clickAndWait document_trash_content_buttons:nxw_CURRENT_SELECTION_UNDELETE_form:nxw_CURRENT_SELECTION_UNDELETE
assertConfirmation Undelete selected document(s)?
verifyTextNotPresent localConfigNote
clickAndWait link=localConfigWS
clickAndWait link=Manage
clickAndWait link=Local configuration
watchA4jRequests
click contentViewConfigurationView:local_configuration_nxl_content_view_configuration:local_configuration_nxl_content_view_configuration_form:nxl_content_view_configuration_disable
waitForA4jRequest 10000
clickAndWait link=localConfigFolder
verifyTextPresent localConfigNote
clickAndWait link=Workspaces
click document_content:nxl_document_listing_table_1:nxw_listing_ajax_selection_box_with_current_document
waitForEditable document_content_buttons:nxw_CURRENT_SELECTION_TRASH_form:nxw_CURRENT_SELECTION_TRASH 12000
clickAndWait document_content_buttons:nxw_CURRENT_SELECTION_TRASH_form:nxw_CURRENT_SELECTION_TRASH
assertConfirmation Delete selected document(s)?
clickAndWait link=Manage
clickAndWait link=Trash
click document_trash_content:nxl_document_listing_table_1:nxw_listing_ajax_selection_box_with_current_document
waitForEditable document_trash_content_buttons:nxw_CURRENT_SELECTION_DELETE_form:nxw_CURRENT_SELECTION_DELETE 12000
clickAndWait document_trash_content_buttons:nxw_CURRENT_SELECTION_DELETE_form:nxw_CURRENT_SELECTION_DELETE
assertConfirmation Permanently delete selected document(s)?
clickAndWait link=Log out