How can I capture screenshots for my visual UI tests in Cypress?

How can I capture screenshots for my visual regression tests in Cypress?

Hi Helen!

To capture screenshots for Visual Regression testing with Cypress, you can use the below command:

cy.screenshot();