From e8f273b1df769517f8a7cc88fcb32a3afa761d1e Mon Sep 17 00:00:00 2001 From: Vladimir Sedmik Date: Fri, 5 Apr 2024 16:17:04 +0200 Subject: [PATCH] Fixes in repo discovery and search (cherry picked from commit 9b6592c7dac8b0e232ea2077d5c67c18e1715a30) --- airgun/views/product.py | 2 +- airgun/views/repository.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/airgun/views/product.py b/airgun/views/product.py index 0eb2dc861..5ef30c2e1 100644 --- a/airgun/views/product.py +++ b/airgun/views/product.py @@ -159,7 +159,7 @@ def is_displayed(self): @View.nested class discovered_repos(View): - discover_action = Text("//button[@type='submit']") + discover_action = Text("//button[@type='submit' and contains(., 'Discover')]") cancel_discovery = Text("//button[@ng-click='cancelDiscovery()']") repos = CreateDiscoveredReposView() diff --git a/airgun/views/repository.py b/airgun/views/repository.py index 8e805195e..d227e6dbd 100644 --- a/airgun/views/repository.py +++ b/airgun/views/repository.py @@ -12,7 +12,6 @@ from airgun.views.common import ( BaseLoggedInView, SearchableViewMixin, - SearchableViewMixinPF4, ) from airgun.widgets import ( ActionsDropdown, @@ -26,7 +25,7 @@ ) -class RepositoriesView(BaseLoggedInView, SearchableViewMixinPF4): +class RepositoriesView(BaseLoggedInView, SearchableViewMixin): breadcrumb = BreadCrumb() new = Text("//button[contains(@href, '/repositories/new')]") sync = Text("//button[contains(@ng-click, 'syncSelectedRepositories')]")