Open prescottprue opened 4 years ago
Although I also think in the direction passwords should not be in the code, I tend to think preventing this is not so much responsibility of the library (warnings are fine). I suggest to focus in two directions:
Something of note: Just using a UID that doesn't already exist creates the user if you are using cy.login
since it is generating a custom auth token through firebase-admin which does this automatically.
Does that handle your case @fabiocarneiro? I would like to avoid directly advocating for creating new users in tests since it would require cleanup - this would add tons and tons of new accounts even after of a short time of having tests run as part of a CI flow where builds/tests are run regularly
@prescottprue for my use case, I'm using the email returned from an authenticated session to do something in my app. I could likely rewrite my app logic to grab the email in another way but having this built into cypress-firebase
would be a nice addition.
By the way, thanks for all of your work on cypress-firebase
!
cy.deleteUser() would be the most usefull because when I test the account creation, I need to manually delete the user in the firebase authentification emulator
As mentioned in #14 by @fabiocarneiro there is a need for creating user's during tests:
Notes
Open Questions