functional_tests: Fix delete backup path

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2019-07-30 18:49:50 -04:00 committed by Sunil Mohan Adapa
parent 4901ad76f2
commit a89190b700
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -205,7 +205,7 @@ def dynamicdns_change_config(browser):
def backup_delete_root_archives(browser):
"""Delete all archives of the root borg repository"""
browser.visit(default_url + '/plinth/sys/backups/')
path = "//a[starts-with(@href,'/plinth/sys/backups/delete/root/')]"
path = "//a[starts-with(@href,'/plinth/sys/backups/root/delete/')]"
while browser.find_by_xpath(path):
browser.find_by_xpath(path).first.click()
with wait_for_page_update(browser,