Skip to content

Commit

Permalink
host_new>content>errata tab pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Jan 18, 2024
1 parent 318a029 commit 983af33
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions airgun/entities/host_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,18 @@ def apply_erratas(self, entity_name, search):
view.flash.assert_no_error()
view.flash.dismiss()

def get_errata_pagination(self, entity_name):
"""Get pagination info from Errata tab on selected host"""
view = self.navigate_to(self, 'NewDetails', entity_name=entity_name)
view.wait_displayed()
view.content.errata.select()
# pass empty search to show any and all,
# if a previous method left the searchbar filled
view.content.errata.searchbar.fill(' ')
view.content.errata.wait_displayed()
self.browser.plugin.ensure_page_safe()
return view.content.errata.pagination

def get_module_streams(self, entity_name, search):
"""Filter module streams"""
view = self.navigate_to(self, 'NewDetails', entity_name=entity_name)
Expand Down
2 changes: 1 addition & 1 deletion airgun/views/host_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class errata(Tab):
8: Dropdown(locator='./div'),
},
)
pagination = PF4Pagination()
pagination = PF4Pagination("//div[@class = 'pf-c-pagination pf-m-bottom tfm-pagination']")

@View.nested
class module_streams(Tab):
Expand Down

0 comments on commit 983af33

Please sign in to comment.