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:
Sunil Mohan Adapa authored and Veiko Aasa committed 2020-03-29 09:43:26 +03:00
1 parent 0b5b384651
commit 89b7301962
4 files changed
+4 -27

No files matched your search

+1 -8
View File
@@ -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:
-6
View File
@@ -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')