StrictDoc Documentation
tests/end2end/screens/document/view_document/view_document_empty/test_case.py
Source file coverage
Path:
tests/end2end/screens/document/view_document/view_document_empty/test_case.py
Lines:
32
Non-empty lines:
23
Non-empty lines covered with requirements:
23 / 23 (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(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_project_index = Screen_ProjectIndex(self)
24
 
25
            screen_project_index.assert_on_screen()
26
            screen_project_index.assert_contains_document("Empty Document")
27
 
28
            screen_document = screen_project_index.do_click_on_first_document()
29
 
30
            screen_document.assert_on_screen_document()
31
            screen_document.assert_header_document_title("Empty Document")
32
            screen_document.assert_empty_document()