-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
The its
command doesn't accept a log option (logging can't be disabled)
#1450
Comments
Agree. Oversight on our part. |
We are open source and welcome contributions, even a 'work in progress' PR is helpful!
You can see there is the Here is an example of accepting the We would also need some tests around this new behavior for |
How do we deal with the arguments spread operator for |
Also needs timeout option, just like other commands |
Is this open? |
I would like handle it! |
@wildaces215 There has been no work done on this issue. Feel free to open a pull request. |
Is it that invokeFn = (subject, fn, options = { log: true }, args...) -> and then replace if options.log
options._log = Cypress.log ? Or do you rather use _.defaults(options, {
log: true
}) instead of function argument defaults? Update: I actually don't really need this... in my custom command, instead of Tried installing cypress on my machine to work on this, but the |
I will take this one |
At a first step I added the Loggable options to its(). I will try a variant for invoke() in the next days |
I will have a look at the |
What would be the case for a timeout here? Is it a common use case that an existing object is extended with properties or functions after some time? |
The code for this is done in cypress-io/cypress#5519, but has yet to be released. |
Released in |
Current behavior:
cy.window({ log: false }).its('something', { log: false })
throws an error because no options object is supported. (The docs bear this out as well).Desired behavior:
I should be able to suppress logging using
its('something', { log: false })
or theits
command should inherit the log level from the previous call (if this is currently the expected behavior I'll investigate further and create a reproduction, I didn't see a mention of this in the docs).Also, I would think that the
its
command should accept a timeout property.The text was updated successfully, but these errors were encountered: