I'm trying to check if a contenteditable
element is focused (it has the blinking caret), but this doesn't work:
cy.get('span[contenteditable]').then($span => {
cy.focused().then($focused => {
expect($focused).to.eql($span)
}
}
What should I do instead?