email: Add basic functional tests

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-02-14 18:35:53 -08:00 committed by James Valleroy
parent 96c587c13c
commit 851644574d
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for email app.
"""
import pytest
from plinth.tests import functional
pytestmark = [pytest.mark.apps, pytest.mark.email]
class TestEmailApp(functional.BaseAppTests):
app_name = 'email'
has_service = True
has_web = False
check_diagnostics = True
@pytest.fixture(autouse=True)
def fixture_background(self, session_browser):
functional.login(session_browser)
functional.set_advanced_mode(session_browser, True)
functional.install(session_browser, self.app_name)
functional.app_enable(session_browser, self.app_name)
yield
functional.login(session_browser)
functional.app_disable(session_browser, self.app_name)

View File

@ -30,6 +30,7 @@ markers = [
"domain",
"dynamicdns",
"ejabberd",
"email",
"gitweb",
"help",
"i2p",