Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to hide a log in cypress?

I'd like to know if there's a way to not show a log in Cypress, for example.

If I make a test to log into any application, when it types the password:

cy.get(#id).type(password)

and the test is executed, the password value appears in the log.

Is there any way of stopping this?

like image 765
Chema Lopez Avatar asked May 28 '18 14:05

Chema Lopez


1 Answers

as per docs, this should work:

cy.get("#id").type( password, { log: false });
like image 137
dwelle Avatar answered Oct 17 '22 20:10

dwelle