That's error reproduced just on DashBoard, i use just a simple click()
function setFiltersFromHomePage({ filter, stream = STREAMS.recognitions, attempts = 10 }) {
HOME_PAGE.getRecognitionsFiltersButton().click()
HOME_PAGE.getRecognitionsFilterContainer().should('be.visible')
cy.get('.input-single-ui-select-list > .ui-select-match > .btn-default').click({ force: true }) // XXX: Should use {force:true} because filter option covered by another element
if (attempts > 0) {
cy.get('body').then((body) => {
if (body.find('.ui-select-choices-row-inner').length) {
REWARD_PAGE.getDenomination().contains(filter).click()
} else {
cy.reload()
waitUntilDomInReadyState()
chooseStream({ stream })
setFiltersFromHomePage({ filter, stream, attempts: attempts - 1 })
}
})
} else {
throw new Error('The list of filters not visible')
}
}
Via Active questions tagged javascript - Stack Overflow https://ift.tt/LWcxkjK
Comments
Post a Comment