spectron icon indicating copy to clipboard operation
spectron copied to clipboard

Testing global shortcuts (accelerators)

Open coda-nsit opened this issue 3 years ago • 0 comments

My electron app has many webviews and some global keyboard shortcuts like cmd=: zoom in cmd-: zoom out cmdr: reload

Everything works in the app and I want to write integration tests.

Till now I have not found any way to simulate/test this, since, cmd key is not identified and thus, nothing happens when I press these combinations.

I have tried RobotJS (does not support latest node version so rebuilding it for electron fails).

coda-nsit avatar Jun 21 '21 17:06 coda-nsit