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

[6.15.z] Add a couple of waits to RH repos pages #1632

Merged
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
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
Loading