mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-12 17:07:23 +01:00
tests: fix logout sequence for nc 26
This commit is contained in:
@@ -35,8 +35,15 @@ class NextcloudAutomation(object):
|
||||
def logout(self):
|
||||
d = self.d
|
||||
d.say("Logout of Nextcloud")
|
||||
d.find_el('#settings .avatardiv').click()
|
||||
d.find_el('[data-id="logout"] a').click()
|
||||
el = d.find_el('#user-menu > a', throws=False)
|
||||
if not el:
|
||||
# nc < 26
|
||||
d.find_el('#settings .avatardiv').click()
|
||||
d.find_el('[data-id="logout"] a').click()
|
||||
else:
|
||||
# nc >= 26
|
||||
el.click()
|
||||
d.find_el('#logout > a').click()
|
||||
|
||||
def open_contacts(self):
|
||||
d = self.d
|
||||
|
||||
Reference in New Issue
Block a user