diff --git a/airgun/entities/http_proxy.py b/airgun/entities/http_proxy.py index 7c0ad5bbd..308041769 100644 --- a/airgun/entities/http_proxy.py +++ b/airgun/entities/http_proxy.py @@ -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') diff --git a/airgun/views/http_proxy.py b/airgun/views/http_proxy.py index d1d8b74fb..2dd94f9fc 100644 --- a/airgun/views/http_proxy.py +++ b/airgun/views/http_proxy.py @@ -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={ @@ -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 @@ -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 ') )