mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-12 17:07:23 +01:00
Update QA tests for Nextcloud 28
This commit is contained in:
@@ -65,6 +65,9 @@ try:
|
||||
contacts.click_contact(contact)
|
||||
contacts.wait_contact_loaded()
|
||||
contacts.delete_current_contact()
|
||||
|
||||
elif op=='nop':
|
||||
pass
|
||||
|
||||
else:
|
||||
raise ValueError('Invalid operation: %s' % op)
|
||||
|
||||
@@ -86,7 +86,19 @@ test_nextcloud_contacts() {
|
||||
# create local user alice
|
||||
mgmt_assert_create_user "$alice" "$alice_pw"
|
||||
|
||||
|
||||
# NC 28: make sure user is initialized in nextcloud by logging
|
||||
# them in and opening the contacts app using ui
|
||||
# automation. otherwise, any access to contacts will fail with 404
|
||||
# "Addressbook with name 'contacts' could not be found". logging
|
||||
# in, by say, using a WebDAV PROPFIND does not work.
|
||||
record "Initialize $alice in nextcloud"
|
||||
assert_browser_test \
|
||||
nextcloud/contacts.py \
|
||||
"nop" \
|
||||
"$alice" \
|
||||
"$alice_pw" \
|
||||
"" "" ""
|
||||
|
||||
#
|
||||
# 1. create contact in Nextcloud - ensure it is available in Roundcube
|
||||
#
|
||||
|
||||
@@ -71,7 +71,21 @@ test_create_contact() {
|
||||
# generate an email address - the contact's email must be
|
||||
# unique or it can't be created
|
||||
local contact_email="bob_bacon$(generate_uuid | awk -F- '{print $1 }')@example.com"
|
||||
|
||||
|
||||
# NC 28: make sure user is initialized in nextcloud by logging
|
||||
# them in and opening the contacts app using ui
|
||||
# automation. otherwise, any access to contacts will fail with
|
||||
# 404 "Addressbook with name 'contacts' could not be
|
||||
# found". logging in, by say, using a WebDAV PROPFIND does not
|
||||
# work.
|
||||
record "Initialize $alice in nextcloud"
|
||||
assert_browser_test \
|
||||
nextcloud/contacts.py \
|
||||
"nop" \
|
||||
"$alice" \
|
||||
"$alice_pw" \
|
||||
"" "" ""
|
||||
|
||||
# create a contact using roundcube's ui
|
||||
record "[create contact in Roundcube]"
|
||||
if assert_browser_test \
|
||||
|
||||
Reference in New Issue
Block a user