-
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
cy.within followed by cy.screenshot capture runner does not capture runner #14253
Comments
Workaround is to set the subject back to the entire document (then there is no subject) cy.get('.banner').within(() => {
// should capture the entire test runner
cy.document().within(() => {
cy.screenshot('hello-world', {
capture: 'runner'
})
})
}) |
I thought this might have been caused by a recent regression with the within changes, but this has been an issue since 3.8.1 at least. |
The code for this is done in cypress-io/cypress#14264, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Cypress v6.1.0
The following test
I expect the screenshot to be of the entire runner, like this
But it takes only the
.banner
The devtools console shows the subject of the
within
affects the screenshot command, ignoringcapture: runner
optionDesired result
when using
capture: runner
we should ignore the subject insteadThe text was updated successfully, but these errors were encountered: