Secret masking with Cypress recordings

Viewed 998

I couldn't find a similar question here. We have been piloting Cypress for our E2E tests. One thing that is not overtly obvious but feels problematic is the fact that in the videos that are being recorded by Cypress, any secret texts (passwords) that are being typed in are being logged in the video recording. Have folks run into this issue before? Is there a way to fix this?

1 Answers

If your webpage itself is not showing cleartext. There is a way to hide from cypress commands.

Add

cy.get('yourelement').type('password',{log:false});

Then you can see the command is hidden.

enter image description here

see cypress doc.

Related