HeriYantodotDev / cool-store

0 stars 0 forks source link

[Testing] Automated Testing for Sign Up Component #13

Open HeriYantodotDev opened 1 year ago

HeriYantodotDev commented 1 year ago

Feature or Functionality

Create tests for the sign-up component to cover both the rendering and functionality.

Testing Scope

Sign Up via Email:

Sign Up via Google:

Testing Steps

For both email and Google sign-up:

  1. Validate the form to ensure all required fields are properly handled.
  2. Test the error handling mechanism when an email that has already been used is entered.
  3. Verify if the authentication navigation bar updates to "Sign Out" after a successful sign-up.
  4. Test the redirection to the root path after a successful sign-up.
  5. Remove the user after it's been created from the firebase database.
HeriYantodotDev commented 1 year ago

I still have to figure out how to set up the firebase testing environment. Postpone this for a while.

HeriYantodotDev commented 1 year ago

I'll move this task to the to do after I figure this out in this task: https://github.com/HeriYantodotDev/cool-store/issues/34