Full Testing & Verification

5.6 Full Testing & Verification

Your app is ready — let’s prove it works perfectly

1. Start the Application

npm run dev

Open → http://localhost:3000

2 Full Testing & Verification – Checklist (Tick as you go!)

Done#ActionExpected Result
1Open homepage (/)Welcome card with Login and Sign Up buttons
2Click Sign Up → go to /signupClean sign-up form appears
3Register with new email + strong passwordSuccess → switches to “Verify Email” screen
4Check your email (including Spam/Promotions)Receive 6-digit verification code from Amazon Cognito
5Enter the codeSuccess → automatically redirected to Sign In page
6Sign in with the same credentialsSuccess → redirected to Dashboard
7Dashboard loadsShows your name, email, role = user, and beautiful layout
8Click Sign OutLogged out → back to homepage
9Open new tab → go directly to /dashboardImmediately redirected to /signinProtectedRoute works perfectly
10Try signing up with the same email againError: “Account already exists.”
11Sign in with wrong passwordError: “Invalid email or password”
12Create new user → don’t verify → try loginError: “Please verify your email first”

3. Change Password Testing

Done#ActionExpected Result
13Sign in with verified accountSuccessfully logged in to Dashboard
14Navigate to Change Password sectionForm with Current Password, New Password, Confirm New Password fields
15Submit with wrong current passwordError: “Current password is incorrect”
16Submit with weak new passwordError: “Password does not meet requirements”
17Submit with mismatched confirm passwordError: “Passwords do not match”
18Submit with correct current + strong new passwordSuccess: “Password changed successfully”
19Sign out and sign in with old passwordError: “Invalid email or password”
20Sign in with new passwordSuccess → Dashboard loads correctly

4. Forgot Password Testing

Done#ActionExpected Result
21Go to Sign In page → Click Forgot Password?Redirected to Forgot Password page
22Enter registered email addressSuccess: “Reset code sent to your email”
23Check email for password reset codeReceive 6-digit reset code from Amazon Cognito
24Enter reset code + new strong passwordSuccess: “Password reset successfully” → redirected to Sign In
25Sign in with new passwordSuccess → Dashboard loads correctly

All 25 checks passed? → You’ve just built a 100% working, production-grade authentication system with complete password management!

when you access dashboard like this picture . hosted zone

You’re officially done — go deploy it and show the world!


Navigation:

Next → 5.7 Clean Up Resources (optional but recommended)