Sorry. Not secure enough.
Even though the password in not stored in the source code it can still be accessed.
If your tests run in Cypress dashboard which is public (which you can't make private until you have a paid Cy Dashboard subscription), anyone can look at your test recordings and can easily view the password in the Test runner.
Follow this guide from Gleb, in conjunction with what you have posted above to completely protect password/sensitive data : glebbahmutov.com/blog/keep-passwor...
I'm a software engineer who loves testing. I'm also a clean coder, blogger, YouTuber, Cypress.io Ambassador, online instructor, speaker, an active member of tech communities.
Location
Barcelona, Spain
Education
Bachelor in business management with an emphasis on system information analysis at PUCRS (2012)
Pronouns
He, him, his
Work
Instructor and Founder at Talking About Testing online school
Hi, @abhimassive
,
For that, we can pass the option { log: false } when typing the password.
E.g., cy.get('#password').type(Cypress.env('user_password'), { log: false }).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sorry. Not secure enough.
Even though the password in not stored in the source code it can still be accessed.
If your tests run in Cypress dashboard which is public (which you can't make private until you have a paid Cy Dashboard subscription), anyone can look at your test recordings and can easily view the password in the Test runner.
Follow this guide from Gleb, in conjunction with what you have posted above to completely protect password/sensitive data :
glebbahmutov.com/blog/keep-passwor...
Hi, @abhimassive ,
For that, we can pass the option
{ log: false }
when typing the password.E.g.,
cy.get('#password').type(Cypress.env('user_password'), { log: false })
.