Fix unpermitted user session in test_selfservice (Web UI test)

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Serhii Tsymbaliuk
2018-09-19 13:32:51 +02:00
parent 685cef554b
commit 41258d81b5
+7 -1
View File
@@ -287,4 +287,10 @@ class test_selfservice(UI_driver):
s = "div[name='ipasshpubkey'].multivalued-widget"
facet = self.get_facet()
btn = self.find(s, By.CSS_SELECTOR, facet, strict=True)
assert btn.is_displayed is not True
btn_is_displayed = btn.is_displayed
# logout needs to prevent using this unpermitted user in other tests
try:
assert btn_is_displayed is not True
finally:
self.logout()