summaryrefslogtreecommitdiffstats
path: root/ipatests/test_webui
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-04-16 12:04:59 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-10 10:23:26 +0200
commitfaf4fea30fd01ad5f5c372877d0e8fe20963dc91 (patch)
tree91674ecb80ed855dad1ed3e7e0a7991b58e05a79 /ipatests/test_webui
parent2f3dc7908d1c62b729ab38b6d684dc0e942c4528 (diff)
downloadfreeipa-faf4fea30fd01ad5f5c372877d0e8fe20963dc91.tar.gz
freeipa-faf4fea30fd01ad5f5c372877d0e8fe20963dc91.tar.xz
freeipa-faf4fea30fd01ad5f5c372877d0e8fe20963dc91.zip
webui: patternFly dialog
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'ipatests/test_webui')
-rw-r--r--ipatests/test_webui/ui_driver.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py
index b57acab1f..4b3069640 100644
--- a/ipatests/test_webui/ui_driver.py
+++ b/ipatests/test_webui/ui_driver.py
@@ -504,9 +504,9 @@ class UI_driver(object):
"""
Get all dialogs in DOM
"""
- s = 'div[role=dialog]'
+ s = '.modal-dialog'
if name:
- s += " div[data-name='%s'" % name
+ s += "[data-name='%s']" % name
dialogs = self.find(s, By.CSS_SELECTOR, many=True)
if strict:
assert dialogs, "No dialogs found"
@@ -526,7 +526,7 @@ class UI_driver(object):
"""
Get last opened error dialog or None.
"""
- s = "div[role=dialog] div[data-name='%s']" % dialog_name
+ s = ".modal-dialog[data-name='%s']" % dialog_name
dialogs = self.find(s, By.CSS_SELECTOR, many=True)
dialog = None
if dialogs:
@@ -542,7 +542,7 @@ class UI_driver(object):
info = None
if dialog:
- body = self.find('.rcue-dialog-body', By.CSS_SELECTOR, dialog, strict=True)
+ body = self.find('.modal-body', By.CSS_SELECTOR, dialog, strict=True)
info = {
'name': dialog.get_attribute('data-name'),
'text': body.text,
@@ -644,6 +644,9 @@ class UI_driver(object):
s = "[name=profile-menu] a[href='#%s']" % name
btn = self.find(s, By.CSS_SELECTOR, strict=True)
btn.click()
+ # action is usually followed by opening a dialog, add wait to compensate
+ # possible dialog transition effect
+ self.wait(0.5)
def get_form(self):
"""