Remove unnecessary session clearing in some Web UI tests

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
Serhii Tsymbaliuk 2018-09-11 16:46:12 +02:00
parent 93eafaec1a
commit 970af640ee
2 changed files with 1 additions and 8 deletions

View File

@ -287,10 +287,4 @@ 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)
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()
assert btn.is_displayed is not True

View File

@ -422,7 +422,6 @@ class test_user(user_tasks):
"""
Try to login with no username provided
"""
self.driver.delete_all_cookies()
self.init_app(login='', password='xxx123')
alert_e = self.find('.alert[data-name="username"]',