StrictDoc Documentation
tests/end2end/screens/document/view_document/view_document_display_rst_directive_wildcard_image/test_case.py
Source file coverage
Path:
tests/end2end/screens/document/view_document/view_document_display_rst_directive_wildcard_image/test_case.py
Lines:
34
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-54, 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.server import SDocTestServer
12
 
13
path_to_this_test_file_folder = os.path.dirname(os.path.abspath(__file__))
14
 
15
 
16
class Test_UC01_T05_DisplayRSTDirectiveWildcardImage(E2ECase):
17
    def test(self):
18
        with SDocTestServer(
19
            input_path=path_to_this_test_file_folder
20
        ) as test_server:
21
            self.open(test_server.get_host_and_port())
22
 
23
            screen_document_tree = Screen_ProjectIndex(self)
24
 
25
            screen_document_tree.assert_on_screen()
26
            screen_document_tree.assert_contains_document("Document 1")
27
 
28
            screen_document = screen_document_tree.do_click_on_first_document()
29
 
30
            screen_document.assert_on_screen_document()
31
            screen_document.assert_header_document_title("Document 1")
32
            screen_document.assert_not_empty_document()
33
 
34
            screen_document.assert_no_js_errors()