How to test native application menu actions?


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 -
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?