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] Adding new functionality for multi repo override #1127

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
11 changes: 11 additions & 0 deletions airgun/entities/host_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,17 @@ def override_repo_sets(self, entity_name, repo_set, action):
view.flash.assert_no_error()
view.flash.dismiss()

def override_multiple_repo_sets(self, entity_name, repo_set, repo_type, action):
"""Change override for multiple repository sets without using the Select All method"""
view = self.navigate_to(self, 'NewDetails', entity_name=entity_name)
view.wait_displayed()
self.browser.plugin.ensure_page_safe()
view.content.repository_sets.searchbar.fill(repo_set)
view.content.repository_sets.table[0][0].widget.click()
view.content.repository_sets.dropdown.item_select(action)
view.flash.assert_no_error()
view.flash.dismiss()

def bulk_override_repo_sets(self, entity_name, repo_type, action):
"""Change override for repository set"""
view = self.navigate_to(self, 'NewDetails', entity_name=entity_name)
Expand Down
Loading