CEC-244 Add search (#43)

* Add search to car send command page
Add snapshot check
This commit is contained in:
John Wu
2021-05-27 09:03:42 -07:00
committed by GitHub
parent 931e1521e8
commit 5943b42a91
6 changed files with 2003 additions and 1160 deletions

View File

@@ -87,6 +87,10 @@ 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 / authenticated", async () => {
setToken(TEST_AUTH_OBJECT);
await check("/", "h1", "Welcome John!");
@@ -132,6 +136,11 @@ 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");
});

File diff suppressed because it is too large Load Diff