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

View File

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