Add journal types to some search tests

This commit is contained in:
Micah Jerome Ellison 2020-09-24 19:40:08 -07:00
parent 66b9f5a461
commit 2ac8f61a75

View file

@ -1,7 +1,7 @@
Feature: Searching in a journal Feature: Searching in a journal
Scenario: Displaying entries using -on today should display entries created today. Scenario Outline: Displaying entries using -on today should display entries created today
Given we use the config "basic.yaml" Given we use the config "<config>.yaml"
When we run "jrnl today: Adding an entry right now." When we run "jrnl today: Adding an entry right now."
Then we should see the message "Entry added" Then we should see the message "Entry added"
When we run "jrnl -on today" When we run "jrnl -on today"
@ -9,8 +9,14 @@ Feature: Searching in a journal
But the output should not contain "Everything is alright" But the output should not contain "Everything is alright"
And the output should not contain "Life is good" And the output should not contain "Life is good"
Scenario: Displaying entries using -from day should display correct entries Examples: configs
Given we use the config "basic.yaml" | config |
| basic |
| empty_folder |
| dayone |
Scenario Outline: Displaying entries using -from day should display correct entries
Given we use the config "<config>.yaml"
When we run "jrnl yesterday: This thing happened yesterday" When we run "jrnl yesterday: This thing happened yesterday"
Then we should see the message "Entry added" Then we should see the message "Entry added"
When we run "jrnl today at 11:59pm: Adding an entry right now." When we run "jrnl today at 11:59pm: Adding an entry right now."
@ -22,8 +28,14 @@ Feature: Searching in a journal
And the output should contain "A future entry." And the output should contain "A future entry."
And the output should not contain "This thing happened yesterday" And the output should not contain "This thing happened yesterday"
Scenario: Displaying entries using -from and -to day should display correct entries Examples: configs
Given we use the config "basic.yaml" | config |
| basic |
| empty_folder |
| dayone |
Scenario Outline: Displaying entries using -from and -to day should display correct entries
Given we use the config "<config>.yaml"
When we run "jrnl yesterday: This thing happened yesterday" When we run "jrnl yesterday: This thing happened yesterday"
Then we should see the message "Entry added" Then we should see the message "Entry added"
When we run "jrnl today at 11:59pm: Adding an entry right now." When we run "jrnl today at 11:59pm: Adding an entry right now."
@ -35,6 +47,12 @@ Feature: Searching in a journal
And the output should contain "Adding an entry right now." And the output should contain "Adding an entry right now."
And the output should not contain "A future entry." And the output should not contain "A future entry."
Examples: configs
| config |
| basic |
| empty_folder |
| dayone |
Scenario: Searching for a string Scenario: Searching for a string
Given we use the config "basic.yaml" Given we use the config "basic.yaml"
When we run "jrnl -contains life" When we run "jrnl -contains life"