-
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
First parameter to custom child command is 'Window' #2898
Comments
Hey @benmonro, version 3.1.3 should not contain any breaking changes - so if this behavior is happening, it would be a bug. Am investigating now. |
Since you have passed For example: cy.get('.misc-table').login() // first arg to login will be DOM `.misc-table`
cy.window().login() // first arg to login will be window Did you chain the directly previous command that |
@jennifer-shehane thanks for the reply. yes I'm doing this in |
Yes, |
In Cypress 3.1.1 the following code: worked:
However, now it seems that as of 3.1.3, the 1st parameter is now 'Window'
Am I crazy or did that change?
Reason I'm putting this in as a bug report, rather than on Stack overflow, is that if so, I believe the documentation needs to be updated, as it's a bit confusing otherwise.
Thanks
Ben
The text was updated successfully, but these errors were encountered: