Path:
tests/end2end/screens/deep_traceability/view_document/view_document_statement_with_inline_csv_table/test_case.py
Lines:
47
Non-empty lines:
36
Non-empty lines covered with requirements:
36 / 36 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
1
"""2
@relation(SDOC-SRS-66, scope=file)3
"""4
5
import os
6
7
from tests.end2end.e2e_case import E2ECase
8
from tests.end2end.helpers.components.viewtype_selector import ViewType_Selector
9
from tests.end2end.helpers.screens.document.screen_document import (
10
Screen_Document,
11
)12
from tests.end2end.helpers.screens.project_index.screen_project_index import (
13
Screen_ProjectIndex,
14
)15
from tests.end2end.server import SDocTestServer
16
17
path_to_this_test_file_folder = os.path.dirname(os.path.abspath(__file__))
18
19
20
class Test(E2ECase):
21
def test(self):
22
with SDocTestServer(
23
input_path=path_to_this_test_file_folder
24
) as test_server:
25
self.open(test_server.get_host_and_port())
26
27
screen_document_tree = Screen_ProjectIndex(self)
28
29
screen_document_tree.assert_on_screen()
30
screen_document_tree.assert_contains_document("Document 1")
31
32
screen_document: Screen_Document = (
33
screen_document_tree.do_click_on_first_document()
34
)35
36
screen_document.assert_on_screen_document()
37
screen_document.assert_header_document_title("Document 1")
38
screen_document.assert_not_empty_document()
39
40
screen_document.assert_no_js_errors()
41
42
viewtype_selector = ViewType_Selector(self)
43
screen_deep_traceability = (
44
viewtype_selector.do_go_to_deep_traceability()
45
)46
screen_deep_traceability.assert_on_screen_deep_traceability()
47
screen_deep_traceability.assert_not_empty_view()