mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
test(a11y): cover delayed and interrupted Map Source focus
Keep the Esri settlement assertion exact, verify selected-source focus and Tab departure in Chromium, cancel pending work during disposal, and document the focused behavior.
This commit is contained in:
1 parent
60812df34c
commit
231d339e92
6 files changed
+89
-14
No files matched your search
@@ -230,3 +230,10 @@ test('pointer leave preserves established keyboard focus and the open tray', ()
|
||||
});
|
||||
|
||||
|
||||
|
||||
test('disposed UI cannot complete a pending handoff', () => {
|
||||
const h = harness({ hidden: true }); h.key(); h.tick();
|
||||
h.manager._disposed = true; h.show(); h.drain();
|
||||
assert.equal(h.document.activeElement, h.disclosure);
|
||||
assert.equal(h.calls(), 1); assert.equal(h.timers.size, 0);
|
||||
});
|
||||
Reference in new issue
Block a user