Skip to content

Commit

Permalink
Update locators for http proxy pages
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Talreja <gtalreja@redhat.com>
  • Loading branch information
Gauravtalreja1 committed Jan 28, 2025
1 parent e3f2833 commit b5f258b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion airgun/entities/http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ShowAllHTTPProxy(NavigateStep):

@retry_navigation
def step(self, *args, **kwargs):
self.view.menu.select('Infrastructure', 'HTTP Proxies')
self.view.menu.select('Infrastructure', 'HTTP proxies')


@navigator.register(HTTPProxyEntity, 'New')
Expand Down
10 changes: 5 additions & 5 deletions airgun/views/http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


class HTTPProxyView(BaseLoggedInView, SearchableViewMixin):
title = Text('//*[(self::h1 or self::h5) and normalize-space(.)="HTTP Proxies"]')
new = Text('//a[normalize-space(.)="New HTTP Proxy"]')
title = Text('//*[(self::h1 or self::h5) and normalize-space(.)="HTTP proxies"]')
new = Text('//a[normalize-space(.)="New HTTP proxy"]')
table = Table(
'.//table',
column_widgets={
Expand All @@ -32,8 +32,8 @@ def is_displayed(self):
breadcrumb_loaded = self.browser.wait_for_element(self.breadcrumb, exception=False)
return (
breadcrumb_loaded
and self.breadcrumb.locations[0] == 'HTTP Proxies'
and self.breadcrumb.read() == 'New HTTP Proxy'
and self.breadcrumb.locations[0] == 'HTTP proxies'
and self.breadcrumb.read() == 'New HTTP proxy'
)

@View.nested
Expand Down Expand Up @@ -63,6 +63,6 @@ def is_displayed(self):
breadcrumb_loaded = self.browser.wait_for_element(self.breadcrumb, exception=False)
return (
breadcrumb_loaded
and self.breadcrumb.locations[0] == 'Http Proxies'
and self.breadcrumb.locations[0] == 'Http proxies'
and self.breadcrumb.read().startswith('Edit ')
)

0 comments on commit b5f258b

Please sign in to comment.