diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEvent.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEvent.zpt index 3a864eb213e90f327bf5c21b9fd4d1cf7a7955a9..e481b632c28654bd72e0f1abbff46038bb09f7bd 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEvent.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEvent.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'send', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -49,7 +49,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_create_event_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Sent', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt index 7faad3d70fc44921b35c073117a98616479fb31d..22684468f3c362724143744d77b4b84861f32870 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt @@ -42,7 +42,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'send', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -79,7 +79,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_create_event_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Sent', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt index b79a133711fdc858d028a08b9e078c0557517fff..2891d49b980670a622795316c544ce35c28a4c81 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -50,7 +50,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_create_event_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Draft', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponse.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponse.zpt index 1dbf9d8908225b5d644feaa40c2c2bcb8429d8a7..5a42f3c3af14c7389ea7e23842928bda46e0400d 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponse.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponse.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -47,7 +47,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_response_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Draft', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt index 6b2d0c81c3dae77feddbf5e75664e287b2c50007..533fb7cd28e0a9bbee78ef0764b0928a77484f93 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -47,7 +47,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_response_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Draft', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt index 5df3e92d93598080e8af4ca10bdcfa454dd4bb3d..21398de8c6b3135555078268b528af279f1bb90e 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -49,7 +49,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt index eb6cfb3709656ec60385952fd54f56ba94793c67..2a31414daf56de602d6c8c7d1c510fdfdca49d4e 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -49,7 +49,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_notification_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt index 470ecf617a20199112cb7f9254107b39fc5a6c14..cebfb98b07069666b10be3ffada741c353feeb2d 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -47,7 +47,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', diff --git a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt index d43baae43da0b876e771bf86cb115ce97ddaf4c3..33709121b7ba10ba377857cc324179c21dad56bd 100644 --- a/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt +++ b/bt5/erp5_crm_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -47,7 +47,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_notification_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEvent.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEvent.zpt index 17c127d690d48368ddf14b926f14b73e1f1ba5fd..f45c6104a825bf26cd692ed3b2382494e02e482b 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEvent.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEvent.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'Test event', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'send', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -51,7 +51,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'Test event', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Sent', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt index a5fd4e9985e609eda7b801bda7f72be372a45142..e5bd4f5f806792742a1aab3b424b9667fbdb5134 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventEditorLanguage.zpt @@ -54,7 +54,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'Test event', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'send', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -93,7 +93,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'Test event', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Sent', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt index 2e8b2fa06be416f4f96f8a636a0351d78ea8d0d4..7806893585228b73036308fa4e4bb70664165fe9 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateNewEventFromNotificationMessage.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -51,7 +51,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_create_event_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Draft', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponse.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponse.zpt index eb98c73312ebd0ca6ee38914c73bfcdf138f8576..6ac6d53a266f7af1e362091bba72ef679145616c 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponse.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponse.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -49,7 +49,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_response_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Draft', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt index 6c2d6017ddcbb07ab1e7496b1525010df48dc98b..2c834e13f7338ce0e90fb9ab499a85e584ce5e7a 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMCreateResponseFromNotificationMessage.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -49,7 +49,7 @@ <tal:block tal:define="response_configuration python: {'field_my_title': 'erp5_crm_ui_test_response_title', 'field_my_portal_type': 'Letter', 'field_my_resource': '', - 'field_my_start_date': '2010-01-01T00:00:00', + 'field_my_start_date': '2010-01-01T00:00', 'simulation_state': 'Draft', 'field_my_source_title': 'erp5_crm_ui_test_agent_title', 'field_my_destination_title': 'erp5_crm_ui_test_customer_title', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt index d92d4ce0b47fdcedae5634ac3868c5f2717e0d38..19f3e92dbef874653729bb15f6149cfc79ec1ef2 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialog.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -51,7 +51,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt index 069028a78e6f181493daf3782b403810af769a2a..de6b3218c960c06b7d166abfcf2c842cfa99283d 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateNewEventDialogFromNotificationMessage.zpt @@ -28,7 +28,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_create_event_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', @@ -51,7 +51,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_title': 'erp5_crm_ui_test_notification_title', 'field_your_portal_type': 'Letter', 'field_your_resource': '', - 'field_your_start_date': '2010-01-01T00:00:00', + 'field_your_start_date': '2010-01-01T00:00', 'field_your_notification_message': '', 'field_your_event_workflow_action': 'draft', 'field_your_source': 'erp5_crm_ui_test_agent_title', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt index 791a86358c91353b954e4eacb7ded417c611a74e..d424706c43cd7866a341538365d99af9f93282f3 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialog.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -49,7 +49,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', diff --git a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt index 47f0105c95ae68ca92f3bdb8231725150188acce..dcc2e5815fa299c18ebd373272c3e29f53c3ef79 100644 --- a/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt +++ b/bt5/erp5_crm_ui_test/PathTemplateItem/portal_tests/crm_action_zuite/testCRMUpdateCreateResponseDialogFromNotificationMessage.zpt @@ -27,7 +27,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_response_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': 'erp5_crm_ui_test_notification_reference', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', @@ -49,7 +49,7 @@ <tal:block tal:define="dialog_content_configuration python: {'field_your_response_event_title': 'erp5_crm_ui_test_notification_title', 'field_your_response_event_portal_type': 'Letter', 'field_your_response_event_resource': '', - 'field_your_response_event_start_date': '2010-01-01T00:00:00', + 'field_your_response_event_start_date': '2010-01-01T00:00', 'field_your_response_event_notification_message': '', 'field_your_response_workflow_action': 'draft', 'field_my_default_destination': 'person_module/erp5_crm_ui_test_agent', diff --git a/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.png b/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.png index 486885d1d5c918d26e2d751e6b9aed4fb51cfc7b..760beb3f011acdfd291068c594be753c6f4c293a 100644 Binary files a/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.png and b/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.png differ diff --git a/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.xml b/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.xml index b6e7f132a3e651faa3d4ee60888e111f843faa4f..c9650672dbe2129ea953494b239e40b87f5f4031 100644 --- a/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.xml +++ b/bt5/erp5_graph_editor_ui_test/PathTemplateItem/portal_tests/graph_editor_zuite/testWorkflowGraph-reference-snapshot-1.png.xml @@ -16,7 +16,7 @@ </item> <item> <key> <string>height</string> </key> - <value> <int>284</int> </value> + <value> <int>276</int> </value> </item> <item> <key> <string>precondition</string> </key> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testJexcelEditor.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testJexcelEditor.zpt index 0b7be1b6995a52e5d02a484fc27384205623617b..f023fa7b962006ec8a5dbb07db6f0edc355740d9 100644 --- a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testJexcelEditor.zpt +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testJexcelEditor.zpt @@ -78,7 +78,7 @@ <!-- Wait for spreadsheet to be rendered by the gadget --> <tr> <td>waitForElementPresent</td> - <td>//div[@class='spreadsheet']</td> + <td>css=.spreadsheet</td> <td></td> </tr> <!-- Verify maximize button is present --> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testOfficeJSWebTableEditor.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testOfficeJSWebTableEditor.zpt index 5e4811c530e233dd41be6644905b15db315f3166..79e40e313affb39a255e89ab7bd4c1eec7a43c69 100644 --- a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testOfficeJSWebTableEditor.zpt +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_webtable_zuite/testOfficeJSWebTableEditor.zpt @@ -116,7 +116,7 @@ </tr> <tr> <td>waitForElementPresent</td> - <td>//div[@class='spreadsheet']</td> + <td>css=.spreadsheet</td> <td></td> </tr> <!-- Wait for editor completly loaded, this is workaround, wait for lock in renderjs --> diff --git a/bt5/erp5_travel_expense/PathTemplateItem/web_site_module/officejs_hr.xml b/bt5/erp5_travel_expense/PathTemplateItem/web_site_module/officejs_hr.xml index 253f18cbab147cf46f39e3f7a38f2560c3109091..59a7991028d0f62856a18df792e8a99f6b5518be 100644 --- a/bt5/erp5_travel_expense/PathTemplateItem/web_site_module/officejs_hr.xml +++ b/bt5/erp5_travel_expense/PathTemplateItem/web_site_module/officejs_hr.xml @@ -357,7 +357,7 @@ </item> <item> <key> <string>configuration_content_security_policy</string> </key> - <value> <string>default-src \'none\'; img-src \'self\' https://*.tile.openstreetmap.org data:; media-src \'self\' blob:; connect-src \'self\' https://localhost:5000 mail.tiolive.com data: *.host.vifib.net *.node.vifib.com *.erp5.net; script-src \'self\' \'unsafe-eval\'; font-src \'self\' netdna.bootstrapcdn.com; style-src \'self\' netdna.bootstrapcdn.com \'unsafe-inline\' data:; frame-src \'self\' data: *.app.officejs.com</string> </value> + <value> <string>default-src \'none\'; img-src \'self\' https://*.tile.openstreetmap.org data:; media-src \'self\' blob:; connect-src \'self\' https://localhost:5000 mail.tiolive.com data: *.host.vifib.net *.node.vifib.com *.erp5.net; script-src \'self\' \'unsafe-eval\'; font-src \'self\' netdna.bootstrapcdn.com; style-src \'self\' netdna.bootstrapcdn.com \'unsafe-inline\' data:; frame-src \'self\' data: *.app.officejs.com; manifest-src \'self\'</string> </value> </item> <item> <key> <string>configuration_default_view_action_reference</string> </key> @@ -670,7 +670,7 @@ </tuple> <state> <tuple> - <float>1549964409.02</float> + <float>1549964409.03</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/LocalisationRecord_viewAsJio.xml b/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/LocalisationRecord_viewAsJio.xml index 624c43ba2683ba53e5cfbc1263ebd7c1a93b2b35..3dd3d3e30080ac8844eb189c3f1f23d5644dcd2c 100644 --- a/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/LocalisationRecord_viewAsJio.xml +++ b/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/LocalisationRecord_viewAsJio.xml @@ -80,6 +80,7 @@ <string>my_source_title</string> <string>my_creation_date</string> <string>your_simulation_state</string> + <string>your_modification_date</string> </list> </value> </item> diff --git a/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/LocalisationRecord_viewAsJio/your_modification_date.xml b/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/LocalisationRecord_viewAsJio/your_modification_date.xml new file mode 100644 index 0000000000000000000000000000000000000000..6b095c67fe99958151ffb6030492eda1447a91b0 --- /dev/null +++ b/bt5/erp5_travel_expense/SkinTemplateItem/portal_skins/erp5_hr_record/LocalisationRecord_viewAsJio/your_modification_date.xml @@ -0,0 +1,287 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StringField" module="Products.Formulator.StandardFields"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>your_modification_date</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>required_not_found</string> </key> + <value> <string>Input is required but no input given.</string> </value> + </item> + <item> + <key> <string>too_long</string> </key> + <value> <string>Too much input was given.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_type</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>input_type</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_maxwidth</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>display_width</string> </key> + <value> <int>20</int> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>input_type</string> </key> + <value> <string>text</string> </value> + </item> + <item> + <key> <string>max_length</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Modification Date</string> </value> + </item> + <item> + <key> <string>truncate</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: here.getModificationDate().Date()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.js b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.js index c4124de7752a283c5eba240e3a58517f0f9b1f01..04fa5afdd3d7b0adc732149bf9a3aa18032be3de 100644 --- a/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.js +++ b/bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/user-extensions.js.js @@ -226,6 +226,16 @@ Selenium.prototype.doVerifyImageMatchSnapshot = ( locator, misMatchTolerance ) => { + if (window['ignoreSnapshotTest'].checked){ + // calling getReferenceImageCounter has the side effect + // of increasing the counter, so if we enable / disable + // snapshot mid test the counter stays in sync. + var snapshotCounter = getReferenceImageCounter( + testFrame.getCurrentTestCase().pathname); + console.log("ignoring snapshot test " + snapshotCounter); + return; + } + var misMatchToleranceFloat = parseFloat(misMatchTolerance); if (isNaN(misMatchToleranceFloat)) { misMatchToleranceFloat = 0; @@ -263,7 +273,7 @@ Selenium.prototype.doVerifyImageMatchSnapshot = ( if (response.status === 200) { return response.blob(); } - throw new Error('Feching reference failed ' + response.statusText); + throw new Error('Fetching reference failed ' + response.statusText); }) .then( blob => { diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.js b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.js index 4fe86866328128f681a225577d5f36bb9f445a2d..b0271fc864b8c37d470331edb6104fccb31fc4bd 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.js +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.js @@ -223,7 +223,7 @@ if (!gadget.state.date_only) { time = "T" + Math.floor(tmp_hour / 10) + tmp_hour % 10 + ":" + - Math.floor(tmp_minute / 10) + (tmp_minute % 10) + ":00"; + Math.floor(tmp_minute / 10) + (tmp_minute % 10); } date = tmp_year + "-" + Math.floor(tmp_month / 10) + (tmp_month % 10) + "-" + diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml index d9ad567953f4ae0781476f108239ecbb84b289f0..cc04718af6f832e81406c1195d3bd0eaba606a86 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml @@ -250,7 +250,7 @@ </tuple> <state> <tuple> - <float>1609253131.45</float> + <float>1609253131.46</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testDisplayWithAndWithoutTimeZone.zpt b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testDisplayWithAndWithoutTimeZone.zpt index c300b278caff41fbf772df936c88d97269750914..9d3b56c0dd6590bddfe5593125dae282c2b888a1 100644 --- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testDisplayWithAndWithoutTimeZone.zpt +++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testDisplayWithAndWithoutTimeZone.zpt @@ -78,7 +78,7 @@ <tr> <td>assertElementPresent</td> - <td>//div[@data-gadget-scope='field_my_start_date']//div[@data-gadget-scope='field']//p[@data-date='2015-12-21T11:00:00']</td> + <td>//div[@data-gadget-scope='field_my_start_date']//div[@data-gadget-scope='field']//p[@data-date='2015-12-21T11:00']</td> <td></td> </tr> @@ -90,7 +90,7 @@ <tr> <td>assertElementPresent</td> - <td>//div[@data-gadget-scope='field_my_stop_date']//div[@data-gadget-scope='field']//p[@data-date='2016-12-21T12:00:00']</td> + <td>//div[@data-gadget-scope='field_my_stop_date']//div[@data-gadget-scope='field']//p[@data-date='2016-12-21T12:00']</td> <td></td> </tr> @@ -145,7 +145,7 @@ <tr> <td>assertElementPresent</td> - <td>//div[@data-gadget-scope='field_my_stop_date']//div[@data-gadget-scope='field']//p[@data-date='2016-12-21T12:00:00']</td> + <td>//div[@data-gadget-scope='field_my_stop_date']//div[@data-gadget-scope='field']//p[@data-date='2016-12-21T12:00']</td> <td></td> </tr> diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testLeapYear.zpt b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testLeapYear.zpt index 3700ec201b7f8387981b866422a48470fe26f5e5..2bcc8047316963274c7f4e51585273603a3ba7da 100644 --- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testLeapYear.zpt +++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testLeapYear.zpt @@ -67,7 +67,7 @@ <tr> <td>verifyValue</td> <td>//div[@data-gadget-scope='field_my_stop_date']//input</td> - <td>2004-02-29T23:10:00</td> + <td>2004-02-29T23:10</td> </tr> <tr> diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testRestoreDateTimeValueIfValidationError.zpt b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testRestoreDateTimeValueIfValidationError.zpt index 344120f686539b2e93bf068dd20bd3524ddff64e..01c4b515e978d34854d68b369e0af442736bc742 100644 --- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testRestoreDateTimeValueIfValidationError.zpt +++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testRestoreDateTimeValueIfValidationError.zpt @@ -123,9 +123,9 @@ </tal:block> <tr> - <td>assertElementPresent</td> - <td>//input[@value='2017-02-22T22:22:00']</td> - <td></td> + <td>assertValue</td> + <td>//input[@name='field_my_start_date']</td> + <td>2017-02-22T22:22</td> </tr> <tr> diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone.zpt b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone.zpt index 68aa9f1760277b6254a419e53ec2e7044b70cfeb..af43cbabf71ed61f529aa8aab6694ab16aebdcbb 100644 --- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone.zpt +++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone.zpt @@ -78,7 +78,7 @@ <tr> <td>assertElementPresent</td> - <td>//div[@data-gadget-scope='field_my_start_date']//div[@data-gadget-scope='field']//p[@data-date='2015-12-21T11:00:00']</td> + <td>//div[@data-gadget-scope='field_my_start_date']//div[@data-gadget-scope='field']//p[@data-date='2015-12-21T11:00']</td> <td></td> </tr> @@ -89,13 +89,13 @@ <tr> <td>verifyValue</td> <td>//div[@data-gadget-scope='field_my_start_date']//input</td> - <td>2015-12-21T11:00:00</td> + <td>2015-12-21T11:00</td> </tr> <tr> <td>verifyValue</td> <td>//div[@data-gadget-scope='field_my_stop_date']//input</td> - <td>2016-12-21T12:00:00</td> + <td>2016-12-21T12:00</td> </tr> <tr> diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone2DigitsYear.zpt b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone2DigitsYear.zpt index 0ee96f0f9768913bb0082da01e95d5a9d663b433..7ef3ffac65c8c23a53c553178bc1c5051a2169ff 100644 --- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone2DigitsYear.zpt +++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_date_time_field_zuite/testSetDateTimeZone2DigitsYear.zpt @@ -73,7 +73,7 @@ <tr> <td>verifyValue</td> <td>//div[@data-gadget-scope='field_my_stop_date']//input</td> - <td>2016-12-21T12:00:00</td> + <td>2016-12-21T12:00</td> </tr> <tr> @@ -85,7 +85,7 @@ <tr> <td>verifyValue</td> <td>//div[@data-gadget-scope='field_my_start_date']//input</td> - <td>2022-12-21T09:00:00</td> + <td>2022-12-21T09:00</td> </tr> diff --git a/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py b/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py index 30ce284cf975e153d110de6f8474546bb9f5b56d..9edb0db29cb508a1f97aae0fc4eef8e6bfc1106e 100644 --- a/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py @@ -233,6 +233,19 @@ class FunctionalTestRunner: options.set_preference('dom.serviceWorkers.enabled', True) # output javascript console and errors on stdout to help diagnosing failures options.set_preference('devtools.console.stdout.content', True) + # Always download attachments and do not open PDF inline, otherwise the + # browser's active would tab lose the focus + download_dir = os.path.join(log_directory, 'downloads') + if not os.path.exists(download_dir): + os.mkdir(download_dir) + options.set_preference("browser.download.dir", download_dir) + options.set_preference("browser.helperApps.neverAsk.saveToDisk", "application/pdf") + options.set_preference("browser.download.folderList", 2) + options.set_preference("browser.download.manager.showWhenStarting", False) + options.set_preference("dom.block_download_insecure", False) + options.set_preference("pdfjs.disabled", True) + # always grant location + options.set_preference("permissions.default.geo", 1) selenium_test_runner_configuration = {} test_runner_configuration_file = os.environ.get('ERP5_TEST_RUNNER_CONFIGURATION') diff --git a/product/Zelenium/selenium/core/TestRunner.html b/product/Zelenium/selenium/core/TestRunner.html index 96b9aabcb531925ef6688177644e416125066008..fd02f788b393dac10587e727c73313ee4ed48ddd 100644 --- a/product/Zelenium/selenium/core/TestRunner.html +++ b/product/Zelenium/selenium/core/TestRunner.html @@ -106,6 +106,9 @@ to work-around a bug in IE on Win2K whereby the HTA application doesn't function <div class="executionOptions"> <input id="highlightOption" type="checkbox" name="highlightOption" value="0"/> <label for="highlightOption">Highlight elements</label> + <br/> + <input id="ignoreSnapshotTest" type="checkbox" name="ignoreSnapshotTest" value="0"/> + <label for="ignoreSnapshotTest">Ignore snapshot tests</label> </div> </fieldset> diff --git a/product/Zelenium/selenium/core/scripts/htmlutils.js b/product/Zelenium/selenium/core/scripts/htmlutils.js index 1d906697eec06408d825a2e5e521162626db52f9..dcf045df8378debfdd795391a204d030901fd1ee 100755 --- a/product/Zelenium/selenium/core/scripts/htmlutils.js +++ b/product/Zelenium/selenium/core/scripts/htmlutils.js @@ -356,7 +356,7 @@ function triggerEvent(element, eventType, canBubble, controlKeyDown, altKeyDown, function getKeyCodeFromKeySequence(keySequence) { var match = /^\\(\d{1,3})$/.exec(keySequence); if (match != null) { - return match[1]; + return parseInt(match[1], 10); } match = /^.$/.exec(keySequence); if (match != null) { @@ -366,7 +366,7 @@ function getKeyCodeFromKeySequence(keySequence) { // 1 digit ascii codes will break however because they are used for the digit chars match = /^\d{2,3}$/.exec(keySequence); if (match != null) { - return match[0]; + return parseInt(match[0], 10); } throw new SeleniumError("invalid keySequence"); } @@ -390,7 +390,18 @@ function triggerKeyEvent(element, eventType, keySequence, canBubble, controlKeyD } else { var evt; - if (window.KeyEvent) { + if (window.KeyboardEvent) { + evt = new KeyboardEvent(eventType, { + ctrlKey: controlKeyDown, + altKey: altKeyDown, + shiftKey: shiftKeyDown, + metaKey: metaKeyDown, + keyCode: keycode, + which: keycode, + cancelable: true, + bubbles: canBubble + }); + } else if (window.KeyEvent) { evt = document.createEvent('KeyEvents'); evt.initKeyEvent(eventType, true, true, window, controlKeyDown, altKeyDown, shiftKeyDown, metaKeyDown, keycode, keycode); } else { @@ -406,7 +417,23 @@ function triggerKeyEvent(element, eventType, keySequence, canBubble, controlKeyD evt.which = keycode; } - element.dispatchEvent(evt); + const dispatched = element.dispatchEvent(evt); + + // perform "Implicit submission" of the form, as specified in + // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission + if ( keycode === 13 + && dispatched + && (eventType === "keypress" || eventType === "keyup") + && (element.type === "text" || element.type === "password") + && element.form + && window.SubmitEvent ) { + const defaultButton = element.form.querySelector("input[type='submit']"); + if (defaultButton && !defaultButton.disabled) { + defaultButton.click(); + } else { + element.form.requestSubmit(); + } + } } } diff --git a/product/Zelenium/selenium/core/scripts/selenium-logging.js b/product/Zelenium/selenium/core/scripts/selenium-logging.js index eac9d2a7cb14b24338eefc3082735695fefc76e4..6ef708d75a5ffc45cf7bf1a6b964c0194dad007f 100644 --- a/product/Zelenium/selenium/core/scripts/selenium-logging.js +++ b/product/Zelenium/selenium/core/scripts/selenium-logging.js @@ -117,18 +117,24 @@ Logger.prototype = { }, debug: function(message) { + // debug is too verbose + // console.debug(new Date().toISOString(), message); this.log("debug", message); }, info: function(message) { + // selenium instructions are logged with level info, we try not to include passwords in logs. + console.info(new Date().toISOString(), message.toString().replace(/password.*/, '***password redacted***')); this.log("info", message); }, warn: function(message) { + console.warn(new Date().toISOString(), message); this.log("warn", message); }, error: function(message) { + console.error(new Date().toISOString(), message); this.log("error", message); }, diff --git a/product/Zelenium/www/suiteView.zpt b/product/Zelenium/www/suiteView.zpt index 0e9bdf007882f6cdb96afc9b6141401772b85a3f..2406ee3c1b4de1c9fe8b1891ccdb6fb0720a4027 100644 --- a/product/Zelenium/www/suiteView.zpt +++ b/product/Zelenium/www/suiteView.zpt @@ -107,6 +107,9 @@ to work-around a bug in IE on Win2K whereby the HTA application doesn't function <div class="executionOptions"> <input id="highlightOption" type="checkbox" name="highlightOption" value="0"/> <label for="highlightOption">Highlight elements</label> + <br/> + <input id="ignoreSnapshotTest" type="checkbox" name="ignoreSnapshotTest" value="0"/> + <label for="ignoreSnapshotTest">Ignore snapshot tests</label> </div> </fieldset>