feat(browser): support clipboard api userEvent.copy, cut, paste by hi-ogawa · Pull Request #6769 · vitest-dev/vitest (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseKeyDef doesn't strictly check what's inside {xxx} and, for example, {ControlOrMeta} ends up with keyDef: { key: 'ControlOrMeta', code: 'Unknown' }. Then we only send keyDef.key to the provider, so it's working.
We should probably do something with this key translation layer, but what do you suggest for this specific ControlOrMeta etc... specifically? Is this about consistency between providers (like supporting ControlOrMeta both for playwright and webdriverio)?