tests: functional: Fix expecting FreedomBox to be home page

In some cases, we are visiting / and expecting to reach the home page of
FreedomBox UI. When due to failed tests in config app, the home page is set to
something other than FreedomBox UI, these tests fail. Fix this by visiting
/freedombox explicitly instead.

Tests:

- When hope page is set to Syncthing, kiwix functional tests pass.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2026-03-02 20:50:36 -05:00
1 parent 168f662a17
commit bbbe2cf950
3 files changed
+8 -5

No files matched your search

+3 -2
View File
@@ -368,7 +368,8 @@ def _create_admin_account(browser, username, password):
def login(browser):
"""Login to the FreedomBox interface with default test account."""
login_with_account(browser, base_url, config['DEFAULT']['username'],
login_with_account(browser, base_url + '/freedombox/',
config['DEFAULT']['username'],
config['DEFAULT']['password'])
@@ -560,7 +561,7 @@ def app_can_be_disabled(browser, app_name):
# Front page utilities #
########################
def find_on_front_page(browser, app_name):
browser.visit(base_url)
browser.visit(base_url + '/freedombox/')
shortcuts = browser.links.find_by_href(f'/{app_name}/')
return shortcuts