fix(web): restore login page design and add runtime config injection (#435)
Co-authored-by: Jason Woltje <jason@diversecanvas.com> Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #435.
This commit is contained in:
@@ -5,7 +5,7 @@ import { AuthDivider } from "./AuthDivider";
|
||||
describe("AuthDivider", (): void => {
|
||||
it("should render with default text", (): void => {
|
||||
render(<AuthDivider />);
|
||||
expect(screen.getByText("or continue with email")).toBeInTheDocument();
|
||||
expect(screen.getByText("or continue with")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("should render with custom text", (): void => {
|
||||
@@ -13,10 +13,10 @@ describe("AuthDivider", (): void => {
|
||||
expect(screen.getByText("or sign up")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("should render a horizontal divider line", (): void => {
|
||||
it("should render horizontal divider lines", (): void => {
|
||||
const { container } = render(<AuthDivider />);
|
||||
const line = container.querySelector("span.border-t");
|
||||
expect(line).toBeInTheDocument();
|
||||
const lines = container.querySelectorAll("[aria-hidden='true'].h-px");
|
||||
expect(lines.length).toBe(2);
|
||||
});
|
||||
|
||||
it("should apply uppercase styling to text", (): void => {
|
||||
|
||||
Reference in New Issue
Block a user