fix: respond immediately to rapid queue detail toggles
Windows CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe
2026-09-06 12:45:02 +02:00
parent 98c3c01fd3
commit 9fec291b45
4 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -105,7 +105,11 @@ async function main() {
await toggle.click();
assert.equal(await toggle.getAttribute('aria-expanded'), 'false', 'Toggle collapses');
await toggle.dblclick();
assert.equal(await toggle.getAttribute('aria-expanded'), 'true', 'Double-clicking toggle changes state only once');
assert.equal(await toggle.getAttribute('aria-expanded'), 'false', 'Both rapid toggle clicks are applied');
for (const detail of [3, 4, 5]) {
await toggle.dispatchEvent('click', { detail });
assert.equal(await toggle.getAttribute('aria-expanded'), String(detail % 2 === 1), 'Rapid repeated clicks are never suppressed');
}
await toggle.focus();
await win.keyboard.press('Space');
assert.equal(await toggle.getAttribute('aria-expanded'), 'false', 'Space collapses');