dashorst opened a new issue, #1956:
URL: https://github.com/apache/wicket/issues/1956
To check a cell of a table or a row of a list view, a test has to know the
exact row index:
```java
tester.assertLabel("table:rows:1:cells:2", "MyCell");
```
When the test only cares that some row contains the value, a wildcard index
would make it independent of ordering:
```java
tester.assertLabel("table:rows:?:cells:2", "MyCell");
```
## Where
`wicket-tester/src/main/java/org/apache/wicket/util/tester/BaseWicketTester.java`,
`assertLabel` and the methods that resolve a path to a component
(`getComponentFromLastRenderedPage`). `WicketTester` is shipped to
applications, so new behaviour is public API and needs Javadoc and an `@since`.
## Done when
- Agree in a comment on the scope first: only `assertLabel`, or every
assertion that takes a path; which character (`?` or `*`, and whether either
can occur in a real component id); and what "matches" means when several rows
match.
- Tests in `wicket-core-tests/src/test/java/org/apache/wicket/util/tester/`.
## Background
Originally requested as
[WICKET-6488](https://issues.apache.org/jira/browse/WICKET-6488).
---
Part of #1945. This issue is meant for a first contribution to Wicket. To
work on it, leave a comment so others know; a claim without a pull request
lapses after two weeks. Questions are welcome, here on the issue or on
[email protected]. Start your branch from `master`, and see [Send a pull
request to
Wicket](https://wicket.apache.org/contribute/wicket-pull-request.html) for
building and testing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]