Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@NicholasBoll NicholasBoll released this 20 Aug 05:00
· 4 commits to master since this release
  • feat: Add support for cy.within.

BREAKING CHANGE:

Previously cy.pipe() without a previous chain would fall back to using the body element always. Now, if the cy.pipe is inside a cy.within, the withinSubject will be used instead.

Before:

cy.get('.foobar').within(() => {
  cy.pipe(el => el) // el is the body element
})

After:

cy.get('.foobar').within(() => {
  cy.pipe(el => el) // el is the element with a `foobar` class name
})