{ "size": "1280x900", "params": "chats=8&colors=1&activity=1", "steps": [ { "open": "/chat/perf-chat-0" }, { "wait": 1500 }, { "eval": "(window.__quickSwitchKeys = [], window.addEventListener('keydown', (e) => { if (e.ctrlKey || e.altKey) setTimeout(() => window.__quickSwitchKeys.push({ key: e.key, prevented: e.defaultPrevented })); }, true), true)", "name": "record-keydown-defaults" }, { "press": "Alt+k", "wait": 800 }, { "shot": "switcher-open" }, { "press": "Control+n", "wait": 300 }, { "press": "Control+n", "wait": 300 }, { "shot": "switcher-ctrl-n-twice" }, { "press": "Control+p", "wait": 300 }, { "type": "s", "wait": 500 }, { "shot": "switcher-filtered" }, { "eval": "JSON.stringify(window.__quickSwitchKeys)", "name": "keydown-defaults" }, { "expect": "window.__quickSwitchKeys.filter((k) => k.key === 'n' || k.key === 'p').length === 3 && window.__quickSwitchKeys.filter((k) => k.key === 'n' || k.key === 'p').every((k) => k.prevented)", "name": "ctrl-n-and-ctrl-p-default-prevented" }, { "press": "Enter", "wait": 1200 }, { "shot": "switched" }, { "press": "Alt+k", "wait": 800 }, { "press": "Alt+k", "wait": 800 }, { "shot": "toggled-closed" } ] }