mmonfared / CyFramework

A test automation framework using Cypress
40 stars 9 forks source link

Debug project #3

Closed egarmar1 closed 1 year ago

egarmar1 commented 1 year ago

How do i debug the project choosing a breakpoint, thanks

mmonfared commented 1 year ago

Hi, you can use debugger or `cy.debug() anywhere you want, open devtools in cypress and then run the test. It will pause at the breakpoint. This is Cypress documentation about it > https://docs.cypress.io/api/commands/debug Here I have some examples > https://github.com/mmonfared/automationcamp-cypress/blob/master/cypress/e2e/Session23_Debug_Log.cy.js