Skip to content

feat: Login via CLI #298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test case for CliAuthToken
  • Loading branch information
bryphe-coder committed Feb 17, 2022
commit 9cc7e942388da63aac0cb334c2b830bf8a6384f8
16 changes: 16 additions & 0 deletions site/components/SignIn/CliAuthToken.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from "react"
import { screen } from "@testing-library/react"
import { render } from "../../test_helpers"

import { CliAuthToken } from "./CliAuthToken"

describe("CliAuthToken", () => {
it("renders content", async () => {
// When
render(<CliAuthToken sessionToken="test-token" />)

// Then
await screen.findByText("Session Token")
await screen.findByText("test-token")
})
})
2 changes: 1 addition & 1 deletion site/pages/cli-auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const CliAuthenticationPage: React.FC = () => {
)
}

const useStyles = makeStyles((theme) => ({
const useStyles = makeStyles(() => ({
root: {
width: "100vw",
height: "100vh",
Expand Down