Re-add cypress data attribute
This commit is contained in:
parent
44e618bf9d
commit
644a107377
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in New Issue