@@ -172,6 +172,16 @@ describe('mobile touch targets', () => {
|
||||
})
|
||||
|
||||
describe('unified floating add interaction', () => {
|
||||
it('lets task create and detail forms configure a repeat rule', () => {
|
||||
expect(app).toContain('const composeRepeat = ref')
|
||||
expect(app).toContain('const selectedTaskRepeat = ref')
|
||||
expect(app).toContain('重复<select v-model="composeRepeat"')
|
||||
expect(app).toContain('重复<select v-model="selectedTaskRepeat"')
|
||||
expect(app).toContain("api('/recurrences'")
|
||||
expect(app).toContain("api(`/tasks/${task.id}/recurrence`)")
|
||||
expect(app).toContain("api(`/recurrences/${selectedTaskRecurrence.value.id}`")
|
||||
})
|
||||
|
||||
it('preloads countdowns after authentication', () => {
|
||||
expect(app).toContain('void preloadCountdowns()')
|
||||
expect(app).toContain("const active = await api('/countdowns')")
|
||||
|
||||
Reference in New Issue
Block a user