Open melibe23 opened 3 years ago
Is this not simply down to you calling it from a new .it()
block?
For something like you're after, you'd have to do something more like this, right?
it(`dropdown_with_${index}_app`, () => {
// (call them in the same block same block)
cy.get(appBar).find(`[data-testid="icon-ga-compare"]`).click({ force: true })
cy.get(`[data-testid="compare-basket"]`).should('be.visible').matchImageSnapshot()
})
An element that I want to take a screenshot of hides when there is any other action on the site. So, even if I select correctly the element, the image appears empty
This is my config
This is my test: