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