From 4ba73700afdb66e559a920073a6ff02481e462df Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Mon, 15 Jan 2024 04:50:52 -0500 Subject: [PATCH] Adding new func for multi repo override (#1120) (#1127) (cherry picked from commit 13c59ba15489d6b77689a430643ec7c617fb5ca0) Co-authored-by: Cole Higgins --- airgun/entities/host_new.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/airgun/entities/host_new.py b/airgun/entities/host_new.py index c1202e8d7..109c0c5c8 100644 --- a/airgun/entities/host_new.py +++ b/airgun/entities/host_new.py @@ -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)