Commit 78d97c8e authored by wacky6.AriesMBP's avatar wacky6.AriesMBP Committed by 杨奕

test: fix date-picker

parent 83245f84
......@@ -376,17 +376,17 @@ describe('DatePicker', () => {
ref="compo"
v-model="value"
type="date"
@change="handleChange"
value-format="dd-MM-yyyy" />`,
data() {
return {
value: '',
handleChange: null
value: ''
};
}
}, true);
const spy = sinon.spy();
vm.handleChange = spy;
vm.$refs.compo.$on('change', spy);
vm.$refs.compo.$el.querySelector('input').focus();
setTimeout(_ => {
vm.$refs.compo.picker.$el.querySelector('.el-date-table td.available').click();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment