Commit 3641e27a authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Update tests to follow latest ERP5JS UI modification

Mostly, header gadget is rendered after the main gadget.
Remove many zelenium 'pause' command, by waiting for the expected element instead.
parent b1798eab
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -135,15 +135,19 @@ ...@@ -135,15 +135,19 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -134,7 +134,6 @@ ...@@ -134,7 +134,6 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//input[@name=\'field_my_start_date\']</td>\n <td>//input[@name=\'field_my_start_date\']</td>\n
...@@ -147,15 +146,19 @@ ...@@ -147,15 +146,19 @@
<td>9915-14-21T11:00</td>\n <td>9915-14-21T11:00</td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -154,15 +154,19 @@ ...@@ -154,15 +154,19 @@
<td>GMT-10</td>\n <td>GMT-10</td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -159,15 +159,19 @@ ...@@ -159,15 +159,19 @@
<td>GMT+5</td>\n <td>GMT+5</td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -165,15 +165,19 @@ ...@@ -165,15 +165,19 @@
<td>GMT+5</td>\n <td>GMT+5</td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -147,15 +147,19 @@ ...@@ -147,15 +147,19 @@
<td>GMT+5</td>\n <td>GMT+5</td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
\n \n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
\n \n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
...@@ -171,18 +171,6 @@ ...@@ -171,18 +171,6 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//a[@data-i18n="Edit"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>click</td>\n
<td>//a[@data-i18n="Edit"]</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//input[@title="listbox_start_date"]</td>\n <td>//input[@title="listbox_start_date"]</td>\n
...@@ -195,15 +183,19 @@ ...@@ -195,15 +183,19 @@
<td>2022-12-21</td>\n <td>2022-12-21</td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n="Save"]</td>\n <td>//button[@data-i18n="Save"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -215,21 +215,20 @@ ...@@ -215,21 +215,20 @@
<td>//li[@data-relative-url=\'portal_categories/foo_category/a/a1\']</td>\n <td>//li[@data-relative-url=\'portal_categories/foo_category/a/a1\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>2000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -200,15 +200,19 @@ ...@@ -200,15 +200,19 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -221,6 +221,11 @@ ...@@ -221,6 +221,11 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
...@@ -241,8 +246,8 @@ xxx wait for implementation of catch reponse from erp5 after ajax\n ...@@ -241,8 +246,8 @@ xxx wait for implementation of catch reponse from erp5 after ajax\n
</tr>\n </tr>\n
-->\n -->\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>waitForElementPresent</td>\n <td>waitForElementPresent</td>\n
<td>//select[@name=\'field_your_portal_type\']</td>\n <td>//button[@data-i18n=\'Proceed\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -200,18 +200,23 @@ ...@@ -200,18 +200,23 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n
</tr>\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//button[@data-i18n=\'Save\']</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>waitForElementPresent</td>\n
<td>3000</td>\n <td>//button[@data-i18n=\'Save\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//a[@data-i18n="Tabs"]</td>\n <td>//a[@data-i18n="Tabs"]</td>\n
......
...@@ -92,14 +92,11 @@ ...@@ -92,14 +92,11 @@
<td>//input[@value=\'Logout\']</td>\n <td>//input[@value=\'Logout\']</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
<tr>\n <tr>\n
<td>pause</td>\n <td>pause</td>\n
<td>3000</td>\n <td>200</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n
\n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//input[@value=\'Logout\']</td>\n <td>//input[@value=\'Logout\']</td>\n
......
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