How to test Ionic Menu using Protractor?

I am new to writing E2E tests using Protractor for ionic components. I am trying to do E2E tests for ion menu component that I am using in my project.

Following are the scenarios I am trying to test with Protractor & Jasmine.

1) On click of a menu item, the menu collapses.

2) On tap out of menu / on click of menu back drop, the menu should collapse too.

Somehow I just am not able run the E2E tests with success.

Can anyone please show me code for E2E tests that covers above scenarios ?

Please help me !