> 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());
        }


>
> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>

Reply via email to