Improve test for today collection

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2019-11-03 20:21:56 +01:00
parent a80b78d946
commit e75d7fd0ad
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
2 changed files with 7 additions and 1 deletions

View file

@ -97,6 +97,11 @@ describe('General.vue', () => {
router.push({ name: 'collections', params: { collectionId: 'today' } })
}
expect(wrapper.find('li[task-id="pwen4kz18g.ics"]').exists()).toBe(true) // Already due --> shown
expect(wrapper.find('li[task-id="pwen4kz19g.ics"]').exists()).toBe(false) // Start date in the future --> hidden
expect(wrapper.find('li[task-id="pwen4kz20g.ics"]').exists()).toBe(true) // Start date in the future, but due subsubtask --> shown
expect(wrapper.find('li[task-id="pwen4kz23g.ics"]').exists()).toBe(true) // Due subtask --> shown
// Not today, has today subtask which is completed --> hidden
expect(wrapper.find('li[task-id="pwen4kz30g.ics"]').exists()).toBe(false)
})
/*

View file

@ -83,6 +83,7 @@ LAST-MODIFIED:20190918T095816\n
RELATED-TO:pwen4kz20g\n
UID:pwen4kz23g\n
SUMMARY:Calendar 1 - Task 3 - Subtask 1\n
DUE:20190101T123400\n
END:VTODO\n
END:VCALENDAR`,
`