Path:
tests/end2end/screens/deep_traceability/view_document/view_document_go_from_requirement_card_to_requirement_in_document_view/test_case.py
Lines:
52
Non-empty lines:
39
Non-empty lines covered with requirements:
39 / 39 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
1
"""2
@relation(SDOC-SRS-66, scope=file)3
"""4
5
from tests.end2end.e2e_case import E2ECase
6
from tests.end2end.end2end_test_setup import End2EndTestSetup
7
from tests.end2end.helpers.components.viewtype_selector import (
8
ViewType_Selector,
9
)10
from tests.end2end.helpers.screens.project_index.screen_project_index import (
11
Screen_ProjectIndex,
12
)13
from tests.end2end.server import SDocTestServer
14
15
16
class Test(E2ECase):
17
def test(self):
18
test_setup = End2EndTestSetup(path_to_test_file=__file__)
19
20
with SDocTestServer(
21
input_path=test_setup.path_to_sandbox
22
) as test_server:
23
self.open(test_server.get_host_and_port())
24
25
screen_project_index = Screen_ProjectIndex(self)
26
27
screen_project_index.assert_on_screen()
28
screen_project_index.assert_contains_document("Document #1 title")
29
screen_project_index.assert_contains_document("Document #2 title")
30
31
screen_document = screen_project_index.do_click_on_first_document()
32
33
screen_document.assert_on_screen_document()
34
screen_document.assert_header_document_title("Document #1 title")
35
36
viewtype_selector = ViewType_Selector(self)
37
screen_deep_traceability = (
38
viewtype_selector.do_go_to_deep_traceability()
39
)40
screen_deep_traceability.assert_on_screen_deep_traceability()
41
42
requirement = screen_deep_traceability.get_node()
43
44
requirement.assert_requirement_uid("REQ-001")
45
46
screen_document_ = (
47
requirement.do_go_to_this_requirement_in_document_view()
48
)49
screen_document_.assert_on_screen_document()
50
screen_document_.assert_target_by_anchor("REQ-001")
51
52
assert test_setup.compare_sandbox_and_expected_output()