mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix certificate revocation tests for Web UI
- correct revocation date before search - increase timeouts https://pagure.io/freeipa/issue/7834 Reviewed-By: Armando Neto <abiagion@redhat.com>
This commit is contained in:
@@ -362,6 +362,19 @@ class UI_driver:
|
||||
self.wait()
|
||||
self.wait(d)
|
||||
|
||||
def wait_while_working(self, widget, implicit=0.2):
|
||||
"""
|
||||
Wait while working widget active
|
||||
"""
|
||||
|
||||
working_widget = self.find('.working-widget', By.CSS_SELECTOR, widget)
|
||||
|
||||
self.wait(implicit)
|
||||
WebDriverWait(self.driver, self.request_timeout).until_not(
|
||||
lambda d: working_widget.is_displayed()
|
||||
)
|
||||
self.wait(0.5)
|
||||
|
||||
def xpath_has_val(self, attr, val):
|
||||
"""
|
||||
Create xpath expression for matching a presence of item in attribute
|
||||
|
||||
Reference in New Issue
Block a user