From f6d99234f1489960a45cfcd2bb6f44f91c3fec72 Mon Sep 17 00:00:00 2001 From: "sp.wack" <83104063+amanape@users.noreply.github.com> Date: Mon, 21 Jul 2025 19:40:54 +0400 Subject: [PATCH] fix(frontend): Fix auth modal tests by adding required providersConfigured prop (#9823) --- .../components/features/auth-modal.test.tsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/__tests__/components/features/auth-modal.test.tsx b/frontend/__tests__/components/features/auth-modal.test.tsx index 875bb1c852..dc7be3b474 100644 --- a/frontend/__tests__/components/features/auth-modal.test.tsx +++ b/frontend/__tests__/components/features/auth-modal.test.tsx @@ -19,7 +19,13 @@ describe("AuthModal", () => { }); it("should render the GitHub and GitLab buttons", () => { - render(); + render( + , + ); const githubButton = screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB", @@ -35,7 +41,13 @@ describe("AuthModal", () => { it("should redirect to GitHub auth URL when GitHub button is clicked", async () => { const user = userEvent.setup(); const mockUrl = "https://github.com/login/oauth/authorize"; - render(); + render( + , + ); const githubButton = screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB", @@ -52,7 +64,6 @@ describe("AuthModal", () => { const termsSection = screen.getByTestId("auth-modal-terms-of-service"); expect(termsSection).toBeInTheDocument(); - // Check that all text content is present in the paragraph expect(termsSection).toHaveTextContent( "AUTH$BY_SIGNING_UP_YOU_AGREE_TO_OUR",