Commit 87c30a04 authored by Jérome Perrin's avatar Jérome Perrin

*_ui_test: make Zelenium tests compatible with Zope4 ZMI

The status message no longer use system-msg class, use simpler
"assertTextPresent" that should be enough.

Simplify the waiting for static pages, clickAndWait is enough.
parent 9a5ed805
Pipeline #20785 failed with stage
......@@ -17,8 +17,8 @@ Copy of unittest <a href="https://lab.nexedi.com/nexedi/erp5/blob/master/product
<tr><td>open</td>
<td>${base_url}/portal_caches/manage_clearAllCache</td><td></td></tr>
<tr><td>assertElementPresent</td>
<td>//div[@class="system-msg" and contains(text(), "All cache factories cleared")]</td><td></td></tr>
<tr><td>assertTextPresent</td>
<td>All cache factories cleared</td><td></td></tr>
<tr><td>store</td><td tal:content="python: '{:0>#2d}'.format(now.day())"></td><td>day</td></tr>
<tr><td>store</td><td tal:content="python: '{:0>#2d}'.format(now.month())"></td><td>month</td></tr>
......
......@@ -120,14 +120,13 @@
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed</td>
<td></td>
</tr>
......@@ -170,18 +169,16 @@
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
......@@ -68,14 +68,13 @@
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed</td>
<td></td>
</tr>
......@@ -172,18 +171,16 @@
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
......@@ -16,29 +16,19 @@
<td>${base_url}/Foo_view/my_title/manage_main</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>name=field_css_class</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>name=field_css_class</td>
<td>class1 class2 class3</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='submit']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@name='submit']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
<tr>
......
......@@ -30,13 +30,6 @@
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//textarea[@name='field_sort']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//textarea[@name='field_sort']</td>
......@@ -45,31 +38,23 @@
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Foo_viewRelationField/my_bar_category_title_list/manage_talesForm</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='field_parameter_list']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name='field_parameter_list']</td>
......@@ -77,14 +62,14 @@
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
......@@ -236,46 +221,30 @@
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//textarea[@name='field_sort']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//textarea[@name='field_sort']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/Foo_viewRelationField/my_bar_category_title_list/manage_talesForm</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='field_parameter_list']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name='field_parameter_list']</td>
......@@ -283,21 +252,17 @@
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
......@@ -45,14 +45,14 @@
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
......@@ -63,13 +63,6 @@
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='field_parameter_list']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name='field_parameter_list']</td>
......@@ -77,14 +70,14 @@
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
......@@ -252,14 +245,14 @@
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
......@@ -270,13 +263,6 @@
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//input[@name='field_parameter_list']</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//input[@name='field_parameter_list']</td>
......@@ -284,14 +270,14 @@
</tr>
<tr>
<td>click</td>
<td>clickAndWait</td>
<td>//input[@value='Save Changes']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//div[@class='system-msg']</td>
<td>assertTextPresent</td>
<td>Content changed.</td>
<td></td>
</tr>
......
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