Commit 2c757063 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel_ui_test: check consistency at the end of the test

parent 10462835
...@@ -339,10 +339,7 @@ ...@@ -339,10 +339,7 @@
<tr> <tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/check_consistency" />
<td colspan="3"><b>Ensure everything is indexed, to manually inspect the site</b></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/wait_for_activities" />
</tbody> </tbody>
</table> </table>
......
...@@ -364,10 +364,7 @@ ...@@ -364,10 +364,7 @@
<tr> <tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/check_consistency" />
<td colspan="3"><b>Ensure everything is indexed, to manually inspect the site</b></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/wait_for_activities" />
</tbody> </tbody>
</table> </table>
......
...@@ -429,10 +429,7 @@ ...@@ -429,10 +429,7 @@
<tr> <tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/check_consistency" />
<td colspan="3"><b>Ensure everything is indexed, to manually inspect the site</b></td>
</tr>
<tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/wait_for_activities" />
</tbody> </tbody>
</table> </table>
......
...@@ -99,4 +99,37 @@ ...@@ -99,4 +99,37 @@
</tr> </tr>
</tal:block> </tal:block>
<tal:block metal:define-macro="check_consistency">
<tal:block metal:use-macro="here/Zuite_SlapOSPanelTemplate/macros/wait_for_activities" />
<tal:block tal:define="click_configuration python: {'text': 'Search'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link" />
</tal:block>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded" />
<tr>
<td colspan="3"><b>Ensure all documents are consistent</b></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[contains(@data-gadget-url, 'gadget_erp5_pt_form_list.html')]//input[@name='search']</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/triggle_filter" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/trash_editor_configuration" />
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_filter" />
<tal:block tal:define="search_query python: 'consistency_error:1'">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/search_in_form_list" />
</tal:block>
<tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': 'No records'}">
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/check_listbox_pagination_text" />
</tal:block>
<tr>
<td colspan="3"><p></p></td>
</tr>
</tal:block>
</tal:block> </tal:block>
\ No newline at end of file
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