Commit 787b9c7a authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Improve test assertions to fix test runner errors

parent e44a824d
......@@ -102,7 +102,7 @@
</tr>\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Title 1\' and contains(@href, \'#!change\') and contains(@href, \'n.page=breadcrumb\')]</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Title 1\' and contains(@href, \'#!change\') and contains(@href, \'n.page=breadcrumb\') and contains(@href, \'duration_field\')]</td>\n
<td></td>\n
</tr>\n
\n
......@@ -147,7 +147,7 @@
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>waitForTextPresent</td>\n
<td>Duration Quantity</td>\n
<td></td>\n
</tr>\n
......
......@@ -86,7 +86,7 @@
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//div[@data-gadget-scope=\'m\']//a[text()=\'View\' and contains(@href, \'#!change\') and contains(@href, \'n.view=https\') and contains(@href, \'n.page=\') and contains(@href, \'n.editable=true\')]</td>\n
<td>//div[@data-gadget-scope=\'m\']//a[text()=\'View\' and contains(@href, \'#!change\') and contains(@href, \'n.view=\') and contains(@href, \'n.page=\') and contains(@href, \'n.editable=true\')]</td>\n
<td></td>\n
</tr>\n
<tr>\n
......
......@@ -158,6 +158,11 @@
<td>Start Date</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>waitForElementPresent</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Back\' and contains(@href, \'#!history_previous\')]</td>\n
......
......@@ -136,12 +136,12 @@
<!-- Header has a link to the previous document in selection -->\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\') and contains(@href, \'p.selection_index=0\')]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\') and contains(@href, \'p.selection_index=0\')]</td>\n
<td></td>\n
</tr>\n
\n
......@@ -155,12 +155,12 @@
<!-- Header has a link to the previous document in selection -->\n
<tr>\n
<td>assertElementPresent</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\') and contains(@href, \'p.selection_index=1\')]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\')]</td>\n
<td>//div[@data-gadget-scope=\'header\']//a[text()=\'Next\' and contains(@href, \'#!selection_next\') and contains(@href, \'p.selection_index=1\')]</td>\n
<td></td>\n
</tr>\n
\n
......
......@@ -124,7 +124,7 @@
<td></td>\n
</tr>\n
<tr>\n
<td>assertElementPresent</td>\n
<td>waitForElementPresent</td>\n
<td>//div[@data-gadget-scope=\'erp5_searchfield\']//input[@value=\'title\' and @type=\'text\' and @name=\'search\']</td>\n
<td></td>\n
</tr>\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