/cypress-click-requery-example

Solves the "Cypress DOM detached element" error by finding the current element on the fly

Primary LanguageJavaScript

cypress-click-requery-example

Solves the "Cypress DOM detached element" error by finding the current element on the fly

See spec.cy.js

DOM detached error

Detached error

With applied fix

// spec file
import { registerDetachedElementFix } from './util'
registerDetachedElementFix()

Fixed test

Small print

Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2022

License: MIT - do anything with the code, but don't blame me if it does not work.