From e5466025000e71edba02f247da995ec8a7e507bd Mon Sep 17 00:00:00 2001 From: Mai Vang <100221733+vmaineng@users.noreply.github.com> Date: Thu, 25 Jul 2024 03:45:39 -0700 Subject: [PATCH] mai/fix-added darkmode changes for register (#445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #412 1) updated Login CSS to Register's CSS 2) wrote unit test to ensure dark mode was included --- app/(main)/register/page.test.tsx | 5 + app/(main)/register/page.tsx | 201 +++++++++++++++--------------- 2 files changed, 104 insertions(+), 102 deletions(-) diff --git a/app/(main)/register/page.test.tsx b/app/(main)/register/page.test.tsx index aa96fa48..10d46e2f 100644 --- a/app/(main)/register/page.test.tsx +++ b/app/(main)/register/page.test.tsx @@ -165,4 +165,9 @@ describe('Register', () => { ); }); }); + test('renders Register component in dark mode using global css styles for background and foreground', () => { + const darkModeSection = screen.getByTestId('dark-mode-section'); + + expect(darkModeSection).toHaveClass('dark:bg-gradient-to-b'); + }); }); diff --git a/app/(main)/register/page.tsx b/app/(main)/register/page.tsx index ad61d597..aef09212 100644 --- a/app/(main)/register/page.tsx +++ b/app/(main)/register/page.tsx @@ -125,115 +125,112 @@ const Register = (): JSX.Element => { const isDisabled = !email || !password || password !== confirmPassword; return ( -
- Thank you... fantasy football draft, for letting me know that even - in my fantasies, I am bad at sports. -
-Jimmy Fallon
-+ Thank you... fantasy football draft, for letting me know that even + in my fantasies, I am bad at sports. +
+Jimmy Fallon
+
+ If you have an existing account{' '}
+
- If you have an existing account{' '}
-