abhinaba-ghosh / cypress-react-selector

:zap: cypress plugin to locate react elements by component, props and state
https://www.cypress.io/
MIT License
274 stars 28 forks source link

Option to suppress cy.log in getProps and getCurrentState #437

Open splinecl opened 1 year ago

splinecl commented 1 year ago

We have some cases where the objets on props and state are so large and deep, that getProps and getCurrentState gets tripped up when trying to log the objects to the command log using cy.log.

It would be useful for us if it would be possible to supply an extra parameter to getProps and getCurrentState that lets you suppress the logging of the state or props object to the command log.