samgis / static /src /components /NavBar /TabComponent.vue
alessandro trinca tornidor
test: add data-test-id and aria-labels to improve the playwright tests
7edcc96
<template>
<h2>
<a :href="props.href"
class="bg-white border-2 no-underline pl-2 pr-2 p-1
landscape:border-gray-300 landscape:font-semibold landscape:text-lg"
:data-testid="`tab-${props.description.toLowerCase().replace(/\s+/g, '-')}`"
:aria-label="props.description"
>{{ props.description }}</a>
</h2>
</template>
<script setup lang="ts">
const props = defineProps<{
href: string,
description: string,
}>()
</script>