diff --git a/packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.spec.cy.tsx b/packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.spec.cy.tsx new file mode 100644 index 00000000000..7b68ddc3846 --- /dev/null +++ b/packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.spec.cy.tsx @@ -0,0 +1,24 @@ +/// + +import { VDatePicker } from '..' +import { Application } from '@/../cypress/templates' + +// Utilities +import { ref } from 'vue' + +describe('VDatePicker', () => { + it('selects a range of dates', () => { + const model = ref([]) + cy.mount(() => ( + + + + )) + + cy.get('.v-date-picker-month__day').contains(10).click() + cy.get('.v-date-picker-month__day').contains(20).click() + .then(() => { + expect(model.value).to.have.length(11) + }) + }) +})