mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-20 01:03:06 +02:00
tests: Add test for preserving completed task hierarchy
This commit is contained in:
parent
40f90da404
commit
3a4de9cdfd
1 changed files with 27 additions and 0 deletions
|
@ -478,3 +478,30 @@ class TestViewportsVisibleMetaTag(IntegrationTest):
|
|||
# Currently, two saves are necessary for VISIBLE to take effect
|
||||
self.command("w", regex="written$", lines=1)
|
||||
self.command("w", regex="written$", lines=1)
|
||||
|
||||
|
||||
class TestViewportsPreserveHierarchyUponCompletion(IntegrationTest):
|
||||
|
||||
viminput = """
|
||||
=== Work tasks | +work ===
|
||||
* [ ] main task
|
||||
* [ ] sub task a
|
||||
* [ ] sub task b
|
||||
"""
|
||||
|
||||
vimoutput = """
|
||||
=== Work tasks | +work ===
|
||||
* [ ] main task #{uuid}
|
||||
* [X] sub task a #{uuid}
|
||||
* [ ] sub task b #{uuid}
|
||||
"""
|
||||
|
||||
def execute(self):
|
||||
self.command("w", regex="written$", lines=1)
|
||||
sleep(0.5)
|
||||
self.client.feedkeys('3gg')
|
||||
sleep(0.5)
|
||||
self.client.feedkeys(r'\\td')
|
||||
sleep(0.5)
|
||||
self.command("w", regex="written$", lines=1)
|
||||
sleep(0.5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue