Skip to content

Commit

Permalink
Add a couple of waits to RH repos pages (#1631) (#1633)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE authored Nov 18, 2024
1 parent f8baa45 commit 69da3e1
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 @@ -28,6 +28,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 @@ -67,6 +68,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 69da3e1

Please sign in to comment.