Calling "cy.verifyDownload" with an empty string results in success #189
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
I have been using cy-verify-downloads version 0.2.4 for a while now, and I just noticed an unwanted behaviour.
I accidentally changed one of my test suites so that it would call verifyDownload with an empty string as a parameter. In that case the test would be marked as "pass", even though the file download was not actually tested. The log output in Cypress UI looked like this:
I think this is misleading behaviour. If "cy.verifyDownload" is called with an empty string, then the test case should fail.
The text was updated successfully, but these errors were encountered: