On Sun, Feb 13, 2011 at 1:32 PM, Martin Makundi <
[email protected]> wrote:
> > I haven't looked at the exact implementation of
> > WicketTester, but I think we should change the logic to pass
> assertInvisible
> > if the component's isVisible method returns true, but some parent of the
> > component (an enclosure, etc) is not visible, since in all reality, the
> > component is then also invisible.
>
> It is like that already:
>
> public Result isVisible(String path)
> {
> Component component = getLastRenderedPage().get(path);
> if (component == null)
> {
> fail("path: '" + path + "' does no exist for page: "
> +
> Classes.simpleName(getLastRenderedPage().getClass()));
> }
>
> return isTrue("component '" + path + "' is not visible",
> component.isVisibleInHierarchy());
> }
>
Well, it doesn't work in the scenario I had, which may be specific to
enclosures. I'll get my quickstart uploaded to a JIRA and fix it at some
point.
--
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket? Use Brix! http://brixcms.org*