mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-16 19:18:32 +02:00
Add positive and negative tests for "Entry added" message behavior
This commit is contained in:
parent
3845997a69
commit
962e35e2d9
1 changed files with 21 additions and 0 deletions
|
@ -313,3 +313,24 @@ Feature: Writing new entries.
|
|||
| basic_encrypted.yaml |
|
||||
| basic_folder.yaml |
|
||||
| basic_dayone.yaml |
|
||||
|
||||
Scenario Outline: No "Entry added" message should appear when writing to the default journal
|
||||
Given we use the config "<config_file>"
|
||||
And we use the password "test" if prompted
|
||||
When we run "jrnl This is a new entry"
|
||||
Then the output should not contain "Entry added"
|
||||
And we should get no error
|
||||
|
||||
Examples: configs
|
||||
| config_file |
|
||||
| basic_onefile.yaml |
|
||||
| basic_encrypted.yaml |
|
||||
| basic_folder.yaml |
|
||||
| basic_dayone.yaml |
|
||||
|
||||
Scenario: An "Entry added" message should appear when writing to a non-default journal
|
||||
Given we use the config "multiple.yaml"
|
||||
And we use the password "test" if prompted
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue