You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Kamil (JIRA)" <ji...@apache.org> on 2017/10/27 21:14:00 UTC
[jira] [Created] (WICKET-6488) WicketTester allow wildcard for
checking on lists/rows
Kamil created WICKET-6488:
-----------------------------
Summary: WicketTester allow wildcard for checking on lists/rows
Key: WICKET-6488
URL: https://issues.apache.org/jira/browse/WICKET-6488
Project: Wicket
Issue Type: Improvement
Reporter: Kamil
When you have a table and want to check particular cell in particular row, you could use:
{code}
wicketTester.assertLabel("table:rows:1:cells:2", "MyCell");
{code}
Or when you have pagination links created using ListView, you coud use:
{code}
wicketTester.assertLabel("myListView:1:link", "MyLink");
{code}
The problem is, when you want to check if particular label exists on a list (or row/cell) but doesn't care about the order (or want the tests to be more reliable).
I suggest introducing construct like:
{code}
wicketTester.assertLabel("table:rows:?:cells:2", "MyCell");
{code}
Where "?" (or "*" perhaps) would mean "any index"
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)