StrictDoc Documentation
tests/end2end/screens/project_index/update_project_title_python_config/test_case.py
Source file coverage
Path:
tests/end2end/screens/project_index/update_project_title_python_config/test_case.py
Lines:
43
Non-empty lines:
30
Non-empty lines covered with requirements:
30 / 30 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
1
"""
2
@relation(SDOC-SRS-72, scope=file)
3
"""
4
 
5
import os
6
import shutil
7
 
8
from tests.end2end.conftest import DOWNLOADED_FILES_PATH
9
from tests.end2end.e2e_case import E2ECase
10
from tests.end2end.end2end_test_setup import End2EndTestSetup
11
from tests.end2end.helpers.screens.project_index.screen_project_index import (
12
    Screen_ProjectIndex,
13
)
14
from tests.end2end.server import SDocTestServer
15
 
16
path_to_expected_downloaded_file = os.path.join(
17
    DOWNLOADED_FILES_PATH, "export.reqif"
18
)
19
 
20
 
21
class Test(E2ECase):
22
    def test(self):
23
        shutil.rmtree(DOWNLOADED_FILES_PATH, ignore_errors=True)
24
 
25
        test_setup = End2EndTestSetup(path_to_test_file=__file__)
26
 
27
        with SDocTestServer(
28
            input_path=test_setup.path_to_sandbox
29
        ) as test_server:
30
            self.open(test_server.get_host_and_port())
31
 
32
            screen_project_index = Screen_ProjectIndex(self)
33
            screen_project_index.assert_on_screen()
34
 
35
            screen_project_index.do_update_project_title("UPDATED TITLE")
36
 
37
            screen_project_index.assert_text("UPDATED TITLE")
38
 
39
            self.refresh_page()
40
 
41
            screen_project_index.assert_text("UPDATED TITLE")
42
 
43
        assert test_setup.compare_sandbox_and_expected_output()