Skip to content

Commit

Permalink
Add a couple of waits to RH repos pages (#1631) (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Nov 18, 2024
1 parent 884b974 commit 22f4cc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airgun/entities/redhat_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def read(self, entity_name=None, category='Available', recommended_repo=None):
:param recommended_repo: on/off RH recommended repositories
"""
view = self.navigate_to(self, 'All')
view.wait_displayed()

if recommended_repo:
current_value = self.browser.get_attribute(
Expand Down Expand Up @@ -68,6 +69,7 @@ def disable(self, entity_name, orphaned=False):
:param bool orphaned: Whether the repository is Orphaned
"""
view = self.navigate_to(self, 'All')
view.wait_displayed()
view.search(f'name = "{entity_name}"', category='Enabled')
entity_text = f'{entity_name} (Orphaned)' if orphaned else entity_name
view.enabled.items(name=entity_text)[0].disable()
Expand Down

0 comments on commit 22f4cc9

Please sign in to comment.