Re-add cypress data attribute

This commit is contained in:
Ramon Wenger 2024-10-28 09:31:47 +01:00
parent 44e618bf9d
commit 644a107377
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ export interface SubNavEntry {
id: number;
name: string;
route: EntryOrExternalRoute;
dataCy?: string;
}
export interface Props {
@ -86,7 +87,7 @@ const selectRoute = (current: SubNavEntry) => {
:class="{ 'border-b-2 border-b-blue-900': isCurrentRoute(item.route) }"
>
<!-- todo: split by external / internal and align external links to the right -->
<SubNavItem :to="item.route" class="block py-3">
<SubNavItem :data-cy="item.dataCy" :to="item.route" class="block py-3">
{{ item.name }}
</SubNavItem>
</li>

View File

@ -51,6 +51,7 @@ const items: SubNavEntry[] = [
name: hasEvaluationFeedback.value
? t("a.Selbst- und Fremdeinschätzungen")
: t("a.Selbsteinschätzungen"),
dataCy: "self-evaluation-and-feedback-navigation-link",
route: selfEvaluationRoute,
},
{ id: 3, name: t("a.Handlungskompetenzen"), route: competencesRoute },