diff --git a/src/components/App/App.test.js b/src/components/App/App.test.js index b78ce25..e92f442 100644 --- a/src/components/App/App.test.js +++ b/src/components/App/App.test.js @@ -132,6 +132,10 @@ describe("App", () => { await check("/tools/certificates/add", "span.MuiButton-label", "Sign In"); }); + it("Route /tools/sms/send unauthenticated", async () => { + await check("/tools/sms/send", "span.MuiButton-label", "Sign In"); + }) + it("Route /page-not-found unauthenticated", async () => { await check("/page-not-found", "h1", "Page Not Found"); }); @@ -189,4 +193,9 @@ describe("App", () => { setToken(TEST_AUTH_OBJECT); await check("/tools/certificates/add", "h6", "Create Certificate"); }); + + it("Route /tools/sms/send authenticated", async () => { + setToken(TEST_AUTH_OBJECT); + await check("/tools/sms/send", "h6", "Send SMS"); + }); }); diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index e5d83d8..ebc871d 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -310,6 +310,28 @@ exports[`App Route / authenticated 1`] = ` /> +
  • + +
    + + SMS + +
    + +
    +
  • @@ -808,6 +830,28 @@ exports[`App Route /home authenticated 1`] = ` /> +
  • + +
    + + SMS + +
    + +
    +
  • @@ -1342,6 +1386,28 @@ exports[`App Route /package-create authenticated 1`] = ` /> +
  • + +
    + + SMS + +
    + +
    +
  • @@ -1399,10 +1465,10 @@ exports[`App Route /package-create authenticated 1`] = ` />