This commit is contained in:
@@ -166,7 +166,6 @@ async function submitTaskCompose() {
|
|||||||
totalTasks.value = nextTotalAfterLocalTaskAdd(totalTasks.value)
|
totalTasks.value = nextTotalAfterLocalTaskAdd(totalTasks.value)
|
||||||
}
|
}
|
||||||
taskComposeOpen.value = false
|
taskComposeOpen.value = false
|
||||||
selectTask(task)
|
|
||||||
toast('任务已添加')
|
toast('任务已添加')
|
||||||
} catch (reason) { fail(reason) }
|
} catch (reason) { fail(reason) }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,6 +204,12 @@ describe('unified floating add interaction', () => {
|
|||||||
expect(app).toContain("composeHasTime.value ? composeTime.value : '23:59'")
|
expect(app).toContain("composeHasTime.value ? composeTime.value : '23:59'")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('keeps the current task list visible after creating a task', () => {
|
||||||
|
const submitTaskCompose = app.slice(app.indexOf('async function submitTaskCompose()'), app.indexOf('function toggleSidebar()'))
|
||||||
|
expect(submitTaskCompose).not.toContain('selectTask(task)')
|
||||||
|
expect(submitTaskCompose).toContain("toast('任务已添加')")
|
||||||
|
})
|
||||||
|
|
||||||
it('lets task create and detail forms configure a repeat rule', () => {
|
it('lets task create and detail forms configure a repeat rule', () => {
|
||||||
expect(app).toContain('const composeRepeat = ref')
|
expect(app).toContain('const composeRepeat = ref')
|
||||||
expect(app).toContain('const selectedTaskRepeat = ref')
|
expect(app).toContain('const selectedTaskRepeat = ref')
|
||||||
|
|||||||
Reference in New Issue
Block a user