import React from 'react'; // Mock Provider for E2E tests export const ClerkProvider = ({ children }: any) => <>{children}; export const ClerkLoaded = ({ children }: any) => <>{children}; // Mock hooks export const useAuth = () => ({ isLoaded: true, isSignedIn: true, // we can say true or false depending on what we need. For landing page we need true if we want to show dashboard, or false if we want to show login. Wait, if it's true, it shows "Wróc do Kokpitu". If it's false, it shows "Zaloguj się". Landing page tests look for "Zaloguj", so it must be false! userId: null, sessionId: null, getToken: async () => 'e2e-token' }); export const useUser = () => ({ isLoaded: true, isSignedIn: false, user: null }); // Mock components export const SignInButton = ({ children }: any) => ; export const SignOutButton = ({ children }: any) => ; export const UserButton = () =>
User
; export const SignIn = () =>
SignIn Form
; export const SignUp = () =>
SignUp Form
; export const SignedIn = ({ children }: any) => null; // Hardcoded to false for landing page tests export const SignedOut = ({ children }: any) => <>{children}; export const RedirectToSignIn = () =>
RedirectToSignIn
; export const ClerkLoading = ({ children }: any) => null; export const Protect = ({ children }: any) => <>{children};