assertIsFocusOwner

Asserts that the matched node is the current focus owner, and returns this interaction for chaining.

Focus ownership belongs to the windowing system: it is held by one component of the focused window, so a composition hosted in a window realized by Window { } or Dialog { } can own focus once that window is focused, and a node under the harness root - which is never attached to a window - never can. Delivering a notification with performFocusGained does not confer ownership.