diff --git a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/datetimefield_zuite/testDateTimeDefaultToNow.zpt b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/datetimefield_zuite/testDateTimeDefaultToNow.zpt index c1fc7e7728a31091b668c19ed2fdcdc47f22dd1b..4b928e164f7c9ba0259088360aaf0f0a0a5a6c61 100644 --- a/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/datetimefield_zuite/testDateTimeDefaultToNow.zpt +++ b/bt5/erp5_web_renderjs_ui_test/PathTemplateItem/portal_tests/renderjs_ui_zuite/datetimefield_zuite/testDateTimeDefaultToNow.zpt @@ -54,41 +54,134 @@ <td>//button[@data-i18n='Proceed']</td> <td></td> </tr> + + <tr> <td>waitForElementPresent</td> <td>//a[@data-i18n='Views']</td> <td></td> </tr> + + + + +<tr> + <td>storeLocation</td> + <td>url</td> + <td></td> +</tr> + +<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" /> + + +<tr> + <td>openAndWait</td> + <td>${base_url}/bar_module</td> + <td></td> +</tr> + +<tr> + <td>waitForElementPresent</td> + <td>//tr[@class='listbox-data-line-0 DataA']//a</td> + <td></td> +</tr> + <tr> <td>click</td> - <td>//a[@data-i18n='Views']</td> + <td>//tr[@class='listbox-data-line-0 DataA']//a</td> <td></td> </tr> + + <tr> <td>waitForElementPresent</td> - <td>//a[@data-i18n='DateTimeField']</td> + <td>//span[contains(text(),'DateTimeField')]</td> <td></td> </tr> + <tr> <td>click</td> - <td>//a[@data-i18n='DateTimeField']</td> + <td>//span[contains(text(),'DateTimeField')]</td> <td></td> </tr> + <tr> <td>waitForElementPresent</td> - <td>//input[@name='field_my_start_date']</td> + <td>//input[@name='subfield_field_my_start_date_year']</td> <td></td> </tr> +<tr> + <td>storeValue</td> + <td>//input[@name='subfield_field_my_start_date_year']</td> + <td>year</td> +</tr> + + + +<tr> + <td>storeValue</td> + <td>//input[@name='subfield_field_my_start_date_month']</td> + <td>month</td> +</tr> + + +<tr> + <td>storeValue</td> + <td>//input[@name='subfield_field_my_start_date_day']</td> + <td>day</td> +</tr> + + <tr> <td>storeEval</td> - <td>(new Date()).toISOString().substring(0, 10);</td> + <td>storedVars['year'] + '-' + storedVars['month'] + '-' + storedVars['day']</td> <td>now</td> </tr> +<tr> + <td>open</td> + <td>${url}</td> + <td></td> +</tr> + + +<tr> + <td>waitForElementPresent</td> + <td>//a[@data-i18n='Views']</td> + <td></td> +</tr> + + + +<tr> + <td>click</td> + <td>//a[@data-i18n='Views']</td> + <td></td> +</tr> + + +<tr> + <td>waitForElementPresent</td> + <td>//a[@data-i18n='DateTimeField']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='DateTimeField']</td> + <td></td> +</tr> + +<tr> + <td>waitForElementPresent</td> + <td>//input[@name='field_my_start_date']</td> + <td></td> +</tr> + + <tr> <td>verifyValue</td> <td>//input[@name='field_my_start_date']</td>