mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
nextcloud: tests: functional: Fix test for modified structure of UI
- The DOM structure of the nextcloud UI seems to have changed. Tests: - In functional tests, with the updated code, test_create_folder test passes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
b15bca2fe4
commit
861796d21b
@ -112,7 +112,8 @@ def _class(klass):
|
||||
def _create_folder(browser, folder_name):
|
||||
"""Create a folder in the Nextcloud files app."""
|
||||
# Click on the '+ New' button in the header
|
||||
xpath = f'//div[{_class("action-item")} and @menu-title="New"]//button'
|
||||
xpath = f'//div[{_class("action-item")}]' \
|
||||
'//button[.//*[contains(text(),"New")]]'
|
||||
browser.find_by_xpath(xpath).first.click()
|
||||
|
||||
# Click on the 'New folder' pop down menu item
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user