mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
pagekite: Fix functional tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
0b5b384651
commit
89b7301962
4 files changed
+4
-27
No files matched your search
@@ -41,13 +41,6 @@ def get_app_module(app_name):
|
||||
return module
|
||||
|
||||
|
||||
def get_app_checkbox_id(app_name):
|
||||
checkbox_id = 'app-toggle-input'
|
||||
if app_name in app_checkbox_id:
|
||||
checkbox_id = app_checkbox_id[app_name]
|
||||
return checkbox_id
|
||||
|
||||
|
||||
def _find_install_button(browser, app_name):
|
||||
interface.nav_to_module(browser, get_app_module(app_name))
|
||||
return browser.find_by_css('.form-install input[type=submit]')
|
||||
@@ -101,7 +94,7 @@ def _change_app_status(browser, app_name, change_status_to='enabled'):
|
||||
and change_status_to == 'enabled'):
|
||||
interface.submit(browser, element=button)
|
||||
else:
|
||||
checkbox_id = get_app_checkbox_id(app_name)
|
||||
checkbox_id = app_checkbox_id[app_name]
|
||||
_change_status(browser, app_name, checkbox_id, change_status_to)
|
||||
|
||||
if app_name in apps_with_loaders:
|
||||
|
||||
@@ -257,12 +257,6 @@ def download_file_logged_in(browser, url, suffix=''):
|
||||
return temp_file.name
|
||||
|
||||
|
||||
def pagekite_is_enabled(browser):
|
||||
"""Return whether pagekite is enabled."""
|
||||
nav_to_module(browser, 'pagekite')
|
||||
return browser.find_by_id('app-toggle-input').checked
|
||||
|
||||
|
||||
def pagekite_configure(browser, host, port, kite_name, kite_secret):
|
||||
"""Configure pagekite basic parameters."""
|
||||
nav_to_module(browser, 'pagekite')
|
||||
|
||||
Reference in new issue
Block a user