WIP: dataCy_directive #1053

Draft
jsegarra wants to merge 4 commits from dataCy_directive into dev
4 changed files with 4 additions and 3 deletions
Showing only changes of commit 160fbfca44 - Show all commits

View File

@ -2,7 +2,7 @@
const model = defineModel({ type: [String, Number], required: true });
</script>
<template>
<QDate v-model="model" :today-btn="true" :options="$attrs.options" />
<QDate v-model="model" :today-btn="true" :options="$attrs.options" data-cy />
</template>
<style lang="scss" scoped>
.q-date {

View File

@ -132,7 +132,7 @@ const handleInsertMode = (e) => {
:rules="mixinRules"
:lazy-rules="true"
hide-bottom-space
:data-cy="$attrs.dataCy ?? $attrs.label + '_input'"
v-data-cy
>
<template v-if="$slots.prepend" #prepend>
<slot name="prepend" />

View File

@ -108,6 +108,7 @@ const manageDate = (date) => {
:clearable="false"
@click="isPopupOpen = true"
hide-bottom-space
data-cy="date"
>
<template #append>
<QIcon

View File

@ -313,7 +313,7 @@ function handleKeyDown(event) {
:input-debounce="useURL ? '300' : '0'"
:loading="isLoading"
@virtual-scroll="onScroll"
:data-cy="$attrs.dataCy ?? $attrs.label + '_select'"
data-cy
>
<template #append>
<QIcon