Commit 3370a6fe authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui_test] Test that paginating keeps the search query

parent 219ec8d3
...@@ -100,6 +100,42 @@ ...@@ -100,6 +100,42 @@
<td></td> <td></td>
</tr> </tr>
<!-- Pagination keeps search query -->
<tr>
<td>type</td>
<td>search</td>
<td>%</td>
</tr>
<tr>
<td>click</td>
<td>//div[@data-gadget-scope='erp5_searchfield']//button[contains(@class, 'search_button')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//span[@data-i18n='Records 1 - 3']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@name='search' and @value='%']</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//a[@data-i18n='Next']</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//span[@data-i18n='Records 4 - 6']</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//input[@name='search' and @value='%']</td>
<td></td>
</tr>
</tbody></table> </tbody></table>
</body> </body>
......
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