describe('page',()=>{it('works',()=>{cy.visit('https://example.cypress.io')cy.get('.banner').within(()=>{// should capture the entire test runnercy.screenshot('hello-world',{capture: 'runner'})})})})
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, ignoring capture: runner option
Desired result
when using capture: runner we should ignore the subject instead
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#14264, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
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: