Skip to content

Commit

Permalink
added properties for airgun (#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 authored Apr 10, 2024
1 parent 2235f4a commit d7c272c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airgun/entities/host_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def get_details(self, entity_name, widget_names=None):
view = self.navigate_to(self, 'NewDetails', entity_name=entity_name)
view.wait_displayed()
self.browser.plugin.ensure_page_safe()
wait_for(lambda: view.ansible.roles.noRoleAssign.is_displayed, timeout=5)
# Run this read twice to navigate to the page and load it before reading
view.read(widget_names=widget_names)
return view.read(widget_names=widget_names)

def get_host_statuses(self, entity_name):
Expand Down Expand Up @@ -420,7 +421,7 @@ def get_ansible_roles(self, entity_name):
view = self.navigate_to(self, 'NewDetails', entity_name=entity_name)
view.wait_displayed()
self.browser.plugin.ensure_page_safe()
wait_for(lambda: view.ansible.roles.is_displayed, timeout=5)
wait_for(lambda: view.ansible.roles.table.is_displayed, timeout=5)
return view.ansible.roles.table.read()

def get_ansible_roles_modal(self, entity_name):
Expand Down

0 comments on commit d7c272c

Please sign in to comment.