StrictDoc Documentation
tests/end2end/screens/tree_map/02_tree_map_server/test_case.py
Source file coverage
Path:
tests/end2end/screens/tree_map/02_tree_map_server/test_case.py
Lines:
31
Non-empty lines:
24
Non-empty lines covered with requirements:
24 / 24 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
1
"""
2
@relation(SDOC-SRS-157, scope=file)
3
"""
4
 
5
import os
6
 
7
from tests.end2end.e2e_case import E2ECase
8
from tests.end2end.helpers.screens.project_index.screen_project_index import (
9
    Screen_ProjectIndex,
10
)
11
from tests.end2end.helpers.screens.tree_map.tree_map import Screen_TreeMap
12
from tests.end2end.server import SDocTestServer
13
 
14
path_to_this_test_file_folder = os.path.dirname(os.path.abspath(__file__))
15
 
16
 
17
class Test(E2ECase):
18
    def test_uid(self):
19
        with SDocTestServer(
20
            input_path=path_to_this_test_file_folder
21
        ) as test_server:
22
            self.open(test_server.get_host_and_port())
23
 
24
            screen_project_index = Screen_ProjectIndex(self)
25
            screen_project_index.assert_on_screen()
26
 
27
            tree_map_screen: Screen_TreeMap = (
28
                screen_project_index.do_click_on_tree_map_screen_link()
29
            )
30
            tree_map_screen.assert_on_screen()
31
            tree_map_screen.assert_contains_text("Document tree map")