mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-27 21:16:14 +02:00
Add tag to XML file when edited DayOne entry and is searchable afterward (#1648)
* Add tag to XML file when edited DayOne entry * Remove forbidden change * undo edits * Tags working for DayOne journal * Correction doentries to prevent time-error * Add sorting to tags * Delete test statements * Revert time changes
This commit is contained in:
parent
7229d77bda
commit
907566b39f
2 changed files with 24 additions and 1 deletions
|
@ -334,3 +334,20 @@ Feature: Writing new entries.
|
|||
When we run "jrnl work This is a new entry"
|
||||
Then the output should contain "Entry added to work journal"
|
||||
And we should get no error
|
||||
|
||||
Scenario Outline: Tags are saved when an entry is edited with --edit and can be searched afterward
|
||||
Given we use the config "<config_file>"
|
||||
And we use the password "test" if prompted
|
||||
And we append to the editor if opened
|
||||
@newtag
|
||||
When we run "jrnl --edit -1"
|
||||
When we run "jrnl --tags @newtag"
|
||||
Then the output should contain
|
||||
1 entry found
|
||||
|
||||
Examples: configs
|
||||
| config_file |
|
||||
| basic_onefile.yaml |
|
||||
| basic_encrypted.yaml |
|
||||
| basic_folder.yaml |
|
||||
| basic_dayone.yaml |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue