Skip to content

Commit

Permalink
Add cypress ids to CInputDateTime and CAuthcleintEditorInfo date and …
Browse files Browse the repository at this point in the history
…time elements
  • Loading branch information
katrinDY committed Jul 21, 2023
1 parent a2e1b4c commit 4538279
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
>
<c-input-date-time
v-model="resource.validFrom"
data-test-id="input-valid-from"
:labels="{
clear: $t('general:label.clear'),
none: $t('general:label.none'),
Expand All @@ -166,6 +167,7 @@
>
<c-input-date-time
v-model="resource.expiresAt"
data-test-id="input-expires-at"
:labels="{
clear: $t('general:label.clear'),
none: $t('general:label.none'),
Expand Down
2 changes: 2 additions & 0 deletions lib/vue/src/components/input/CInputDateTime/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<b-form-datepicker
v-if="!noDate"
v-model="date"
data-test-id="picker-date"
:placeholder="labels.none"
:date-format-options="{ year: 'numeric', month: 'numeric', day: 'numeric' }"
:min="minDate"
Expand All @@ -22,6 +23,7 @@
<b-form-timepicker
v-if="!noTime"
v-model="time"
data-test-id="picker-time"
:placeholder="labels.none"
:label-reset-button="labels.clear"
:label-now-button="labels.now"
Expand Down

0 comments on commit 4538279

Please sign in to comment.