1
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user