diff --git a/ayanova/src/components/date-control.vue b/ayanova/src/components/date-control.vue index e06c6bfd..11d6a96a 100644 --- a/ayanova/src/components/date-control.vue +++ b/ayanova/src/components/date-control.vue @@ -15,14 +15,12 @@ :rules="rules" readonly :error="!!hasErrors" - :data-cy="'dtfpick:' + testId" > {{ $ay.t("Delete") @@ -52,7 +50,7 @@ :rules="rules" type="date" :error-messages="errorMessages" - :data-cy="'dpick:' + testId" + :data-cy="`${dataCy}:time`" > @@ -90,7 +88,7 @@ export default { value: { type: String, default: null }, readonly: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, - testId: { type: String, default: null } + dataCy: { type: String, default: null } }, computed: { hasErrors() { diff --git a/ayanova/src/components/date-time-control.vue b/ayanova/src/components/date-time-control.vue index e77adb79..494d9b3f 100644 --- a/ayanova/src/components/date-time-control.vue +++ b/ayanova/src/components/date-time-control.vue @@ -16,38 +16,24 @@ :rules="rules" readonly :error="!!hasErrors" - :data-cy="'dtfpick:' + testId" > - {{ $ay.t("Delete") }} + {{ + $ay.t("Delete") + }} - {{ $ay.t("DateRangeToday") }} + {{ + $ay.t("DateRangeToday") + }} - {{ $ay.t("OK") }} + {{ + $ay.t("OK") + }} @@ -62,7 +48,6 @@ @click:prepend="dlgtime = true" readonly :error="!!hasErrors" - :data-cy="'ttfpick:' + testId" > - {{ $ay.t("Delete") }} + {{ + $ay.t("Delete") + }} - {{ $ay.t("Now") }} + {{ + $ay.t("Now") + }} - {{ $ay.t("OK") }} + {{ + $ay.t("OK") + }} @@ -112,7 +84,7 @@ :rules="rules" type="date" :error-messages="errorMessages" - :data-cy="'dpick:' + testId" + :data-cy="`${dataCy}:date`" > @@ -123,7 +95,7 @@ :readonly="readonly" :disabled="disabled" type="time" - :data-cy="'tpick:' + testId" + :data-cy="`${dataCy}:time`" > @@ -164,7 +136,7 @@ export default { value: { type: String, default: null }, readonly: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, - testId: { type: String, default: null } + dataCy: { type: String, default: null } }, computed: { hasErrors() { diff --git a/ayanova/src/components/duration-control.vue b/ayanova/src/components/duration-control.vue index 3ed4fdc2..6603da06 100644 --- a/ayanova/src/components/duration-control.vue +++ b/ayanova/src/components/duration-control.vue @@ -15,7 +15,7 @@ :disabled="disabled" :label="$ay.t('TimeSpanDays')" type="number" - :data-cy="'durationdays:' + testId" + :data-cy="`${dataCy}:days`" :error="!!hasErrors" > @@ -28,7 +28,7 @@ :disabled="disabled" :label="$ay.t('TimeSpanHours')" type="number" - :data-cy="'durationhours:' + testId" + :data-cy="`${dataCy}:hours`" :error="!!hasErrors" > @@ -41,7 +41,7 @@ :disabled="disabled" :label="$ay.t('TimeSpanMinutes')" type="number" - :data-cy="'durationminutes:' + testId" + :data-cy="`${dataCy}:minutes`" :error="!!hasErrors" > @@ -55,7 +55,7 @@ :disabled="disabled" :label="$ay.t('TimeSpanSeconds')" type="number" - :data-cy="'durationseconds:' + testId" + :data-cy="`${dataCy}:seconds`" :error="!!hasErrors" > @@ -79,7 +79,7 @@ export default { disabled: { type: Boolean, default: false }, showSeconds: { type: Boolean, default: true }, showDays: { type: Boolean, default: true }, - testId: { type: String, default: null } + dataCy: { type: String, default: null } }, computed: { hasErrors() { diff --git a/ayanova/src/components/time-control.vue b/ayanova/src/components/time-control.vue index 00a3521a..3cda8ac2 100644 --- a/ayanova/src/components/time-control.vue +++ b/ayanova/src/components/time-control.vue @@ -14,7 +14,6 @@ @click:prepend="dlgtime = true" readonly :error="!!hasErrors" - :data-cy="'ttfpick:' + testId" > {{ $ay.t("Delete") }} @@ -48,7 +46,7 @@ :readonly="readonly" :disabled="disabled" type="time" - :data-cy="'tpick:' + testId" + :data-cy="`${dataCy}:time`" > @@ -88,7 +86,7 @@ export default { value: { type: String, default: null }, readonly: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, - testId: { type: String, default: null } + dataCy: { type: String, default: null } }, computed: { hasErrors() {