Skip to content

Commit

Permalink
refactor: add missing data-testid
Browse files Browse the repository at this point in the history
Signed-off-by: Svetoslav Borislavov <[email protected]>
  • Loading branch information
SvetBorislavov committed Nov 15, 2024
1 parent 9066b13 commit 0c08ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front-end/src/renderer/components/AccountIdInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import AppAutoComplete from '@renderer/components/ui/AppAutoComplete.vue';
defineProps<{
modelValue: string;
items?: string[];
dataTestid?: string;
}>();
/* Emits */
Expand All @@ -24,6 +25,7 @@ const user = useUserStore();
:model-value="modelValue"
@update:model-value="$emit('update:modelValue', formatAccountId($event))"
:items="items || user.publicKeysToAccountsFlattened"
:data-testid="dataTestid"
v-bind="$attrs"
/>
</template>
2 changes: 2 additions & 0 deletions front-end/src/renderer/components/ui/AppAutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const props = withDefaults(
defineProps<{
modelValue?: string | number;
items: string[];
dataTestid?: string;
}>(),
{
modelValue: '',
Expand Down Expand Up @@ -197,6 +198,7 @@ onBeforeUnmount(() => handleGlobalEvents(false));
:model-value="modelValue"
@update:model-value="handleUpdate($event)"
@keydown="handleKeyDown"
:data-testid="dataTestid"
v-bind="$attrs"
/>
<span ref="suggestionRef" class="autocomplete-suggestion">{{ autocompleteSuggestion }}</span>
Expand Down

0 comments on commit 0c08ae9

Please sign in to comment.