mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
Time to delay after app is enabled, before checking diagnosics. Default value is 0 (no delay). Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
27 lines
809 B
Python
27 lines
809 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""
|
|
Functional, browser based tests for matrixsynapse app.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
from plinth.tests import functional
|
|
|
|
pytestmark = [pytest.mark.apps, pytest.mark.matrixsynapse]
|
|
|
|
|
|
class TestMatrixSynapseApp(functional.BaseAppTests):
|
|
app_name = 'matrixsynapse'
|
|
has_service = True
|
|
has_web = False
|
|
diagnostics_delay = 1
|
|
|
|
@pytest.fixture(scope='class', autouse=True)
|
|
def fixture_setup(self, session_browser):
|
|
"""Setup the app."""
|
|
functional.login(session_browser)
|
|
functional.set_domain_name(session_browser, 'mydomain.example')
|
|
functional.install(session_browser, self.app_name)
|
|
functional.app_select_domain_name(session_browser, self.app_name,
|
|
'mydomain.example')
|