ejabberd: tests: functional: Ensure jsxc is installed

Fixes: #2259.

Tests:

- Run ejabberd functional tests after uninstalling jsxc

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-08-30 13:11:34 -07:00 committed by James Valleroy
parent 54a26f7741
commit 75e5c71020
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -1,9 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
""" """Functional, browser based tests for ejabberd app."""
Functional, browser based tests for ejabberd app.
"""
import pytest import pytest
from plinth.tests import functional from plinth.tests import functional
pytestmark = [pytest.mark.apps, pytest.mark.ejabberd] pytestmark = [pytest.mark.apps, pytest.mark.ejabberd]
@ -20,7 +19,9 @@ class TestEjabberdApp(functional.BaseAppTests):
def fixture_background(self, session_browser): def fixture_background(self, session_browser):
"""Login, install, and enable the app.""" """Login, install, and enable the app."""
functional.login(session_browser) functional.login(session_browser)
functional.install(session_browser, 'jsxc')
functional.install(session_browser, self.app_name) functional.install(session_browser, self.app_name)
functional.app_enable(session_browser, 'jsxc')
functional.app_enable(session_browser, self.app_name) functional.app_enable(session_browser, self.app_name)
yield yield
functional.login(session_browser) functional.login(session_browser)