You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally, the following works fine when our tests spawn a browser window and nothing causes the window to lose focus.
MockInteractions.tap(checkboxElement);
Afterwards, checkboxElement.checked has successfully changed state. However, if something causes the test window to lose focus, checkboxElement.checked will be unchanged after the tap().
The text was updated successfully, but these errors were encountered:
You could use document.hasFocus() to verify that https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus
Something similar was happening to me in Firefox, where the focus stayed on the searchbar; I got the focus back to the document using window.focus().
I don't think this is a problem that the tap method can/should solve.
Normally, the following works fine when our tests spawn a browser window and nothing causes the window to lose focus.
Afterwards,
checkboxElement.checked
has successfully changed state. However, if something causes the test window to lose focus,checkboxElement.checked
will be unchanged after thetap()
.The text was updated successfully, but these errors were encountered: