bahmutov / cypress-click-requery-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:JavaScript 93.2%Language:HTML 6.8%