From da21f02cc470e53844a60f31774d03bbb7011166 Mon Sep 17 00:00:00 2001 From: Pavel Novotny Date: Tue, 23 Apr 2024 05:54:52 +0200 Subject: [PATCH] host: wait for view in Edit host step (#1362) `EditHost` step now waits for the view to be displayed. Needed for an edge case, when editing a host with empty values, i.e., `host.update(client.hostname, {})`, is too fast and the view is not yet fully loaded. --- airgun/entities/host.py | 1 + 1 file changed, 1 insertion(+) diff --git a/airgun/entities/host.py b/airgun/entities/host.py index e724b55b8..4e550120c 100644 --- a/airgun/entities/host.py +++ b/airgun/entities/host.py @@ -464,6 +464,7 @@ def step(self, *args, **kwargs): entity_name = kwargs.get('entity_name') self.parent.search(entity_name) self.parent.table.row(name=entity_name)['Actions'].widget.fill('Edit') + self.view.wait_displayed() @navigator.register(HostEntity, 'Select Action')