Closed
Description
Cypress v6.1.0
The following test
describe('page', () => {
it('works', () => {
cy.visit('https://example.cypress.io')
cy.get('.banner').within(() => {
// should capture the entire test runner
cy.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
Activity