Update Dashboard Charts (#47)
* Update dashboard charts * Remove chart time lock * Update snapshot test
This commit is contained in:
@@ -91,6 +91,10 @@ describe("App", () => {
|
||||
await check("/vehicles-command", "span.MuiButton-label", "Sign In");
|
||||
});
|
||||
|
||||
it("Route /dashboard unauthenticated", async () => {
|
||||
await check("/dashboard", "span.MuiButton-label", "Sign In");
|
||||
});
|
||||
|
||||
it("Route / authenticated", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/", "h1", "Welcome John!");
|
||||
@@ -154,4 +158,10 @@ describe("App", () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/carupdate-deploy/1", "h6", "Deploy ");
|
||||
});
|
||||
|
||||
it("Route /dashboard authenticated", async () => {
|
||||
setToken(TEST_AUTH_OBJECT);
|
||||
await check("/dashboard", "h6", "Dashboard");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user