-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throws error on Cypress.log without previous command #3658
Comments
I'd like to try resolve this? |
sure, try @louise-hayes and if I may suggest
|
What is the expected behaviour? FTR it throws the same exception even if I put a command before it: describe "issue 3658", ->
it 'Cypress.log should not throw an exception', ->
cy.visit('/fixtures/generic.html')
expect(=> Cypress.log('arbitrary_string')).not.to.throw() |
The code for this is done in cypress-io/cypress#4159, but has yet to be released. |
Released in |
Cypress 3.1.5 on Mac
Throws error

Code that throws
https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cypress/log.coffee#L117
The text was updated successfully, but these errors were encountered: