make components from dialogs with unspecified parent findable by unit tests

This commit is contained in:
iap
2025-10-07 11:02:35 -04:00
parent 5f043baa72
commit 321d1307d4

View File

@@ -191,6 +191,10 @@ class BaseClient(abc.ABC):
key: Key | None = None,
) -> t.Iterator[C]:
to_do = [self.root_component]
to_do.extend(
dialog._root_component
for dialog in self.session._fundamental_root_component._owned_dialogs_.values()
)
seen = set[rio.Component]()
while to_do: