My first e2e test and modifications to client to support it

This commit is contained in:
2020-03-31 20:05:27 +00:00
parent 8feb4375f9
commit 2211bf550f
7 changed files with 136 additions and 24 deletions

View File

@@ -1,12 +1,16 @@
/* Xeslint-disable */
function addNavItem(title, icon, route, navItems, key) {
function addNavItem(title, icon, route, navItems, key, testid) {
if (!testid) {
testid = route;
}
window.$gz.store.commit("addNavItem", {
title,
icon,
route,
navItems,
key: key
key: key,
testid: testid
});
}
@@ -157,7 +161,8 @@ export default function initialize() {
"fa-home",
undefined,
sub,
key++
key++,
"home"
);
}
@@ -200,7 +205,8 @@ export default function initialize() {
"fa-address-book",
undefined,
sub,
key++
key++,
"customer"
);
}
@@ -387,7 +393,8 @@ export default function initialize() {
"fa-toolbox",
undefined,
sub,
key++
key++,
"service"
);
}
@@ -467,7 +474,8 @@ export default function initialize() {
"fa-box",
undefined,
sub,
key++
key++,
"inventory"
);
}
@@ -488,7 +496,8 @@ export default function initialize() {
"fa-store",
"/vendors",
[],
key++
key++,
"vendor"
);
}
@@ -516,7 +525,8 @@ export default function initialize() {
"fa-calculator",
undefined,
sub,
key++
key++,
"accounting"
);
}
@@ -602,7 +612,8 @@ export default function initialize() {
"fa-user-tie",
undefined,
sub,
key++
key++,
"administration"
);
}
@@ -668,7 +679,8 @@ export default function initialize() {
"fa-server",
undefined,
sub,
key++
key++,
"operations"
);
}
@@ -688,7 +700,8 @@ export default function initialize() {
"fa-vial",
"/widgets",
[],
key++
key++,
"widgets"
);
}
@@ -730,7 +743,8 @@ export default function initialize() {
"fa-home",
undefined,
sub,
key++
key++,
"homecustomer"
);
}
})