assertIsVisible

Asserts the matched node is visible: neither it nor any ancestor up to the query's root has been hidden with java.awt.Component.setVisible. That is the state a container's own layout drives when it shows one child at a time - a CardPanel shows a card by hiding the others - so it is what to assert on for anything a layout switches between.

Distinct from assertIsDisplayed, which asks whether the layout gave the node real bounds: a hidden node keeps the bounds of the pass that last laid it out, so it satisfies that assertion while failing this one.

The root bounds the walk: a query scoped to a window stops at that window's own content, so whether the window itself is shown is SwingWindowInteraction.assertIsVisible's question.