This commit is contained in:
wujinliang
2026-08-27 21:48:15 +08:00
parent 550d8add97
commit b47323edf3
53 changed files with 624 additions and 82 deletions
@@ -61,6 +61,13 @@ describe('notification center contract UI', () => {
expect(wrapper.text()).not.toContain('存为草稿')
})
it('keeps the scheduled-send switch actionable and clears its date when disabled', () => {
const composer = source('./components/MessageComposerDialog.vue')
expect(composer).toContain('if (value && !form.scheduledAt)')
expect(composer).toContain('if (!value) form.scheduledAt = \'\'')
expect(composer).toContain('Date.now() + 5 * 60 * 1000')
})
it('uses the prototype editor width and exposes the real save command', () => {
const wrapper = mount(TemplateEditorDialog, {
props: { modelValue: true },