Reorganize app pages (#73)
* Update layout and menus * Add breadcrumbs Add menu icons Add ECU drop down * Implement submenu Update download progress * revamped dashboard section - failing app.test.js * Clean up Co-authored-by: Drew Taylor <dtaylor@fiskerinc.com>
This commit is contained in:
@@ -84,12 +84,12 @@ describe("App", () => {
|
||||
await check("/vehicle-status/FISKER123", "span.MuiButton-label", "Sign In");
|
||||
});
|
||||
|
||||
it("Route /vehicles-command unauthenticated", async () => {
|
||||
await check("/vehicles-command", "span.MuiButton-label", "Sign In");
|
||||
it("Route /datascope unauthenticated", async () => {
|
||||
await check("/datascope", "span.MuiButton-label", "Sign In");
|
||||
});
|
||||
|
||||
it("Route /dashboard unauthenticated", async () => {
|
||||
await check("/dashboard", "span.MuiButton-label", "Sign In");
|
||||
it("Route /datascope/battery unauthenticated", async () => {
|
||||
await check("/datascope/battery", "span.MuiButton-label", "Sign In");
|
||||
});
|
||||
|
||||
it("Route /packages unauthenticated", async () => {
|
||||
@@ -138,11 +138,6 @@ describe("App", () => {
|
||||
await check("/vehicle-status/FISKER123", "h6", "Vehicle FISKER123 Details");
|
||||
});
|
||||
|
||||
it("Route /vehicles-command authenticated", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/vehicles-command", "h6", "Send Command");
|
||||
});
|
||||
|
||||
it("Route /page-not-found unauthenticated", async () => {
|
||||
await check("/page-not-found", "h1", "Page Not Found");
|
||||
});
|
||||
@@ -157,14 +152,19 @@ describe("App", () => {
|
||||
await check("/carupdate-deploy/1", "h6", "Deploy Package 1.0");
|
||||
});
|
||||
|
||||
it("Route /dashboard authenticated", async () => {
|
||||
it("Route /datascope authenticated", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/dashboard", "h6", "Dashboard");
|
||||
await check("/datascope", "h6", "Datascope");
|
||||
});
|
||||
|
||||
it("Route /datascope/battery authenticated", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/datascope/battery", "h6", "Battery");
|
||||
});
|
||||
|
||||
it("Route /packages authenticated", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/packages", "h6", "Deploy Packages");
|
||||
await check("/packages", "h6", "Deployments");
|
||||
});
|
||||
|
||||
it("Route /package-status authenticated", async () => {
|
||||
@@ -179,7 +179,6 @@ describe("App", () => {
|
||||
|
||||
it("Route /package-create authenticated", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/package-create", "h6", "Create Package");
|
||||
await check("/package-create", "h6", "Create Deployments");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user