Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[TEXT]
Expand All @@ -18,4 +18,4 @@ RELATIONS:
- TYPE: Parent
VALUE: REQ-2

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[REQUIREMENT]
Expand All @@ -16,4 +16,4 @@ STATEMENT: >>>
Text statement.
<<<

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[TEXT]
Expand All @@ -18,4 +18,4 @@ RELATIONS:
- TYPE: Parent
VALUE: REQ-1

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[REQUIREMENT]
Expand All @@ -16,4 +16,4 @@ STATEMENT: >>>
Text statement.
<<<

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test(self):
screen_document.assert_header_document_title("Document 1")
screen_document.assert_not_empty_document()

requirement = screen_document.get_node(2)
requirement = screen_document.get_node(3)
form_edit_requirement: Form_EditRequirement = (
requirement.do_open_form_edit_requirement()
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[TEXT]
Expand All @@ -10,4 +10,4 @@ STATEMENT: >>>
Text statement.
<<<

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[TEXT]
STATEMENT: >>>
Text statement.
<<<

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test(self):
screen_document.assert_header_document_title("Document 1")
screen_document.assert_not_empty_document()

node = screen_document.get_node()
node = screen_document.get_node(2)
edit_form: Form_EditRequirement = (
node.do_open_form_edit_requirement()
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[TEXT]
Expand All @@ -10,4 +10,4 @@ STATEMENT: >>>
Modified text statement.
<<<

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DOCUMENT]
TITLE: Document 1

[SECTION]
[[SECTION]]
TITLE: Section title

[TEXT]
Expand All @@ -10,4 +10,4 @@ STATEMENT: >>>
Text statement.
<<<

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test(self):

screen_document.assert_text("Text statement.")

node = screen_document.get_node()
node = screen_document.get_node(2)
edit_form: Form_EditRequirement = (
node.do_open_form_edit_requirement()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ STATEMENT: >>>
See the section [LINK: SDOC_UG_CONTACT].
<<<

[SECTION]
[[SECTION]]
UID: SDOC_UG_CONTACT
TITLE: Referenced section

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ STATEMENT: >>>
See the section [LINK: SDOC_UG_CONTACT].
<<<

[SECTION]
[[SECTION]]
UID: SDOC_UG_CONTACT
TITLE: Referenced section

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ def test(self):
screen_document.assert_text("See the section")
screen_document.assert_text("Referenced section")

section = screen_document.get_section(1)
section.assert_section_title("Referenced section")
section = screen_document.get_node(2)
section.assert_requirement_title("Referenced section")
section.do_delete_node(proceed_with_confirm=False)

screen_document.assert_text(
"This section cannot be removed because it contains incoming links."
"Cannot remove node 'Referenced section' with incoming LINKs from: "
"'REQUIREMENT with no title/UID' -> 'SDOC_UG_CONTACT'."
)

assert test_setup.compare_sandbox_and_expected_output()
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ STATEMENT: >>>
Hello world!
<<<

[SECTION]
[[SECTION]]
TITLE: First section

[TEXT]
STATEMENT: >>>
This is a free text of this section.
<<<

[/SECTION]
[[/SECTION]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[project]

section_behavior = "[[SECTION]]"
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def test(self):

screen_document.assert_text("Hello world!")

section = screen_document.get_section()
section.assert_section_title("First section")
section = screen_document.get_node(2)
section.assert_requirement_title("First section")
section.do_delete_node() # confirm is inside

screen_document.assert_no_text("First section")
Expand Down
4 changes: 2 additions & 2 deletions tests/end2end/screens/search/view_search_screen/input.sdoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ TITLE: Test document
[[SECTION]]
TITLE: New section title

[SECTION]
[[SECTION]]
TITLE: Section title

[REQUIREMENT]
TITLE: Requirement title
STATEMENT: Requirement statement.

[/SECTION]
[[/SECTION]]

[[/SECTION]]
Loading