While working on an unrelated change, I noticed that a test was passing inappropriately because the assertion was matching against the qunit test results rather than the element under test. This change scopes the hasElement assertion to be applied within the qunit fixture element, not the entire document.
As a result of the now failing test, I changed that test to be asynchronous to give SelectionChangeObserver an opportunity to fire.
While working on an unrelated change, I noticed that a test was passing inappropriately because the assertion was matching against the qunit test results rather than the element under test. This change scopes the
hasElement
assertion to be applied within the qunit fixture element, not the entire document.As a result of the now failing test, I changed that test to be asynchronous to give
SelectionChangeObserver
an opportunity to fire.