()
| 3215 | |
| 3216 | // Helper to complete the leave animation for all leaving menu elements |
| 3217 | const finishLeaveAnimations = async () => { |
| 3218 | await nextAnimationFrame(); |
| 3219 | document.querySelectorAll('.example-menu.close').forEach((el) => { |
| 3220 | el.dispatchEvent(new AnimationEvent('animationend', {animationName: 'open'})); |
| 3221 | }); |
| 3222 | await timeout(); |
| 3223 | }; |
| 3224 | |
| 3225 | // Simulate rapid clicking with CD between each toggle |
| 3226 | for (let i = 0; i < 20; i++) { |
no test coverage detected