I want to share this solution to my problems.
cy.waitUntil(() =>
cy.get('.someSelector')
.as('someAlias')
.wait(10) // for some reason this is needed, otherwise next line returns `true` even if click() fails due to detached element in the next step
.then($el => Cypress.dom.isAttached($el)),
{ timeout: 1000, interval: 10 })
.get('@someAlias')
.click()
Owner Name | NoriSte |
Repo Name | cypress-wait-until |
Full Name | NoriSte/cypress-wait-until |
Language | JavaScript |
Created Date | 2019-04-27 |
Updated Date | 2023-03-19 |
Star Count | 635 |
Watcher Count | 8 |
Fork Count | 24 |
Issue Count | 3 |
Issue Title | Created Date | Updated Date |
---|