mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
jsxc: Fix functional test case failure
The optimization for not visiting FreedomBox pages again while on FreedomBox pages fails as it assumes that all URLs starting with /plinth/ are part of FreedomBox. /plinth/app/jsxc/jsxc/ is an exception. Fix the optimization condition by adding a conditional check. Better ways can be found later. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
591ed5c4ae
commit
45bd9d3905
@ -37,7 +37,8 @@ default_url = config['DEFAULT']['url']
|
||||
|
||||
def login(browser, url, username, password):
|
||||
|
||||
if '/plinth/' not in browser.url:
|
||||
# XXX: Find a way to remove the hardcoded jsxc URL
|
||||
if '/plinth/' not in browser.url or '/jsxc/jsxc' in browser.url:
|
||||
browser.visit(url)
|
||||
|
||||
apps_link = browser.find_link_by_href('/plinth/apps/')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user