How to test native application menu actions?


#1

I have a simple application that show folders and files.
I want to write e2e test that check the following case:
1)Click File->Open (native electron menu - https://github.com/electron/electron/blob/master/docs/api/menu.md)
2)Pass to native OpenDir dialog the specified folder
3)Check that file and folder list displaing in my app is equal to expected.

What tool do you advise?