Commit 6e27a483 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui_test: use server's date value to check

parent 4b3cc39b
...@@ -54,41 +54,134 @@ ...@@ -54,41 +54,134 @@
<td>//button[@data-i18n='Proceed']</td> <td>//button[@data-i18n='Proceed']</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='Views']</td> <td>//a[@data-i18n='Views']</td>
<td></td> <td></td>
</tr> </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> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='Views']</td> <td>//tr[@class='listbox-data-line-0 DataA']//a</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//a[@data-i18n='DateTimeField']</td> <td>//span[contains(text(),'DateTimeField')]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>click</td> <td>click</td>
<td>//a[@data-i18n='DateTimeField']</td> <td>//span[contains(text(),'DateTimeField')]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//input[@name='field_my_start_date']</td> <td>//input[@name='subfield_field_my_start_date_year']</td>
<td></td> <td></td>
</tr> </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> <tr>
<td>storeEval</td> <td>storeEval</td>
<td>(new Date()).toISOString().substring(0, 10);</td> <td>storedVars['year'] + '-' + storedVars['month'] + '-' + storedVars['day']</td>
<td>now</td> <td>now</td>
</tr> </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> <tr>
<td>verifyValue</td> <td>verifyValue</td>
<td>//input[@name='field_my_start_date']</td> <td>//input[@name='field_my_start_date']</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment