testcafe 支持 pressKey("shift+enter") 吗?

Does testcafe support pressKey("shift+enter")?

我正在尝试测试按 shift+enter 键是否会导致换行。我检查了文档,但那里没有列出这个组合;这个组合会被添加进来还是已经存在而我只是错过了它?

这取决于您的编辑器实现。如果您的编辑器在内部使用 contenteditable 元素,那么根据文档,它仅支持以下组合:'ctrl+a'、'backspace'、'delete'、'left' 和 'right' (only if text within the element is selected).

https://devexpress.github.io/testcafe/documentation/test-api/actions/press-key.html

但是,它应该可以与 textarea 元素一起正常工作。