Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check facts for host #1591

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions airgun/entities/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,15 @@ def get_displayed_table_headers(self):
view.wait_displayed()
return view.displayed_table_header_names

def build_mode(self, entity_name, value=None):
Copy link
Contributor

@LadislavVasina1 LadislavVasina1 Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a method to verify the facts for the host. Can you please more elaborate on the PR description. Also please add some docstring to your entity and maybe alter the entity name so it more reflects what the entity is doing. Thanks!

view = self.navigate_to(self, 'All')
view.table.row(name=entity_name)['Name'].widget.click()
host_view = NewHostDetailsView(self.browser)
host_view.wait_displayed()
host_view.dropdown.wait_displayed()
host_view.dropdown.item_select(value)
return host_view.read()


@navigator.register(HostEntity, 'All')
class ShowAllHosts(NavigateStep):
Expand Down