1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-14 17:27:23 +01:00

QA: updates for recent nextcloud changes

This commit is contained in:
downtownallday
2024-09-20 15:16:21 -04:00
parent 7e4b4ba70c
commit 62b691f44a
3 changed files with 19 additions and 8 deletions

View File

@@ -7,6 +7,7 @@
##### details.
#####
from browser.automation import (
TestDriver,
TimeoutException,
@@ -50,16 +51,20 @@ try:
# open Contacts
#
d.start("Open contacts app")
contacts = nc.open_contacts()
try:
contacts = nc.open_contacts()
except NoSuchElementException:
nc.close_first_run_wizard()
contacts = nc.open_contacts()
nc.wait_for_app_load()
#
# handle selected operation
# handle selected operation
#
if op=='exists':
d.start("Check that contact %s exists", contact['email'])
contacts.click_contact(contact) # raises NoSuchElementException if not found
elif op=='delete':
d.start("Delete contact %s", contact['email'])
contacts.click_contact(contact)
@@ -68,7 +73,7 @@ try:
elif op=='nop':
pass
else:
raise ValueError('Invalid operation: %s' % op)