cypress-skip-test icon indicating copy to clipboard operation
cypress-skip-test copied to clipboard

Skip scripts (false or true) are considered errors (dashboard/screenshot and video folder)

Open melibe23 opened this issue 4 years ago • 3 comments

The image is saved on /screenshot and /videos folder as if it was an error (I only saved when fails) image Also, in the Dashboard image

The tests passed, it is working as expected, but to have the red flag and in the dashboard the metrics are not accurate due to this.

Would it be possible not to consider these as errors?

melibe23 avatar Oct 06 '21 11:10 melibe23

reproducible example: https://github.com/conversaShawn/using-cypress-skip-test-plugin

When importing skipOn or onlyOn, the error sync skip; aborting execution does not appear, however, it does when using cy.skipOn

I am verifying internally if this is the expected behavior.

conversayShawn avatar Oct 18 '21 00:10 conversayShawn

@conversaShawn At the end, I implemented the workaround that you found. Thanks.

melibe23 avatar Nov 10 '21 00:11 melibe23

@conversaShawn Ran into this issue not too long ago. Still interested in knowing if there is a way to skip the test using cy.skipOn without causing a test failure.

AndrewPark9517 avatar Nov 16 '21 22:11 AndrewPark9517