This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
<div class="pl-3" :key="subitem.key">
|
||||
<v-list-item
|
||||
:to="subitem.route"
|
||||
:data-cy="'nav' + subitem.route"
|
||||
:data-cy="'nav' + subitem.testid"
|
||||
>
|
||||
<v-list-item-action>
|
||||
<v-icon
|
||||
|
||||
@@ -14,6 +14,11 @@ function addNavItem(title, icon, route, navItems, key, testid, color = null) {
|
||||
if (color != null) {
|
||||
o["color"] = color;
|
||||
}
|
||||
o.navItems.forEach(z => {
|
||||
if (z.testid == null) {
|
||||
z.testid = z.route;
|
||||
}
|
||||
});
|
||||
|
||||
window.$gz.store.commit("addNavItem", o);
|
||||
}
|
||||
@@ -245,7 +250,8 @@ function initNavPanel() {
|
||||
title: "History",
|
||||
icon: "$ayiHistory",
|
||||
route: `/history/3/${window.$gz.store.state.userId}/true`,
|
||||
key: key++
|
||||
key: key++,
|
||||
testid: "/home-history"
|
||||
});
|
||||
|
||||
//HOME
|
||||
|
||||
Reference in New Issue
Block a user