bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 59 forks source link

Vue3 upgrade: fix unit tests for DatePicker.vue #18943

Open leodube-aot opened 11 months ago

leodube-aot commented 11 months ago

Description: The DatePicker component has already been upgraded to Vue 3, but the unit tests for the component also need to get upgraded. Some work has already been done towards this on the feature branch, ~but there is an issue with including the DateMixin~ The mixin problem appears to be resolved, however there are still a few other problems with the DatePicker unit tests.

wrapper.find('#date-text-field').trigger('click')
await nextTick()
cameron-eyds commented 11 months ago

@leodube-aot Small comment with regards to item #4, any v-menu, v-select, dialog etc in Vuetify3 is rendered in an overlay wrapper at the dom root. It's quite annoying for scoped styling without slots and in the test environment etc. In the test env you have 2 options (that i'm aware of)..

Screenshot 2023-12-18 at 9.00.04 AM.png