Commit a074cccd authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Use the save macro

parent 825d990d
...@@ -35,12 +35,7 @@ ...@@ -35,12 +35,7 @@
<td>foo<br/>bar</td></tr> <td>foo<br/>bar</td></tr>
<!-- Save and force unloading of Form and its content from the memory by going back --> <!-- Save and force unloading of Form and its content from the memory by going back -->
<tr><td>waitForElementPresent</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/save" />
<td>//button[@data-i18n='Save']</td><td></td></tr>
<tr><td>click</td>
<td>//button[@data-i18n='Save']</td><td></td></tr>
<tr><td>waitForTextPresent</td>
<td>Data updated.</td><td></td></tr>
<tr><td>click</td> <tr><td>click</td>
<td>//div[@data-role='header']//h1/a</td><td></td></tr> <td>//div[@data-role='header']//h1/a</td><td></td></tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
...@@ -72,12 +67,8 @@ ...@@ -72,12 +67,8 @@
<td>foo bar</td></tr> <td>foo bar</td></tr>
<!-- Save and force unloading of Form and its content from the memory by going back --> <!-- Save and force unloading of Form and its content from the memory by going back -->
<tr><td>waitForElementPresent</td> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/save" />
<td>//button[@data-i18n='Save']</td><td></td></tr>
<tr><td>click</td>
<td>//button[@data-i18n='Save']</td><td></td></tr>
<tr><td>waitForTextPresent</td>
<td>Data updated.</td><td></td></tr>
<tr><td>click</td> <tr><td>click</td>
<td>//div[@data-role='header']//h1/a</td><td></td></tr> <td>//div[@data-role='header']//h1/a</td><td></td></tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" /> <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
......
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