Skip to content

Commit

Permalink
host: wait for view in Edit host step (SatelliteQE#1362)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
pnovotny authored Apr 23, 2024
1 parent f44766e commit da21f02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airgun/entities/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit da21f02

Please sign in to comment.